curl --request POST \
--url https://api.example.com/v1/projects/{project}/issues \
--header 'Content-Type: application/json' \
--data '
{
"approval": {
"approvalTemplate": {
"flow": {
"roles": [
"<string>"
]
},
"title": "<string>",
"description": "<string>"
},
"approvers": [
{
"status": "STATUS_UNSPECIFIED",
"principalId": 123
}
],
"approvalFindingDone": true,
"approvalFindingError": "<string>"
},
"grantRequest": {
"role": "<string>",
"user": "<string>",
"condition": {
"id": "<string>",
"constExpr": {
"nullValue": "NULL_VALUE",
"boolValue": true,
"int64Value": "<string>",
"uint64Value": "<string>",
"doubleValue": 123,
"stringValue": "<string>",
"bytesValue": "<string>",
"durationValue": "<string>",
"timestampValue": "2023-11-07T05:31:56Z"
},
"identExpr": {
"name": "<string>"
},
"selectExpr": {
"operand": "<unknown>",
"field": "<string>",
"testOnly": true
},
"callExpr": {
"target": "<unknown>",
"function": "<string>",
"args": "<array>"
},
"listExpr": {
"elements": "<array>",
"optionalIndices": [
123
]
},
"structExpr": {
"messageName": "<string>",
"entries": [
{
"id": "<string>",
"fieldKey": "<string>",
"mapKey": "<unknown>",
"value": "<unknown>",
"optionalEntry": true
}
]
},
"comprehensionExpr": {
"iterVar": "<string>",
"iterVar2": "<string>",
"iterRange": "<unknown>",
"accuVar": "<string>",
"accuInit": "<unknown>",
"loopCondition": "<unknown>",
"loopStep": "<unknown>",
"result": "<unknown>"
}
},
"expiration": "<string>"
},
"labels": [
"<string>"
],
"riskLevel": "RISK_LEVEL_UNSPECIFIED"
}
'{
"approval": {
"approvalTemplate": {
"flow": {
"roles": [
"<string>"
]
},
"title": "<string>",
"description": "<string>"
},
"approvers": [
{
"status": "STATUS_UNSPECIFIED",
"principalId": 123
}
],
"approvalFindingDone": true,
"approvalFindingError": "<string>"
},
"grantRequest": {
"role": "<string>",
"user": "<string>",
"condition": {
"id": "<string>",
"constExpr": {
"nullValue": "NULL_VALUE",
"boolValue": true,
"int64Value": "<string>",
"uint64Value": "<string>",
"doubleValue": 123,
"stringValue": "<string>",
"bytesValue": "<string>",
"durationValue": "<string>",
"timestampValue": "2023-11-07T05:31:56Z"
},
"identExpr": {
"name": "<string>"
},
"selectExpr": {
"operand": "<unknown>",
"field": "<string>",
"testOnly": true
},
"callExpr": {
"target": "<unknown>",
"function": "<string>",
"args": "<array>"
},
"listExpr": {
"elements": "<array>",
"optionalIndices": [
123
]
},
"structExpr": {
"messageName": "<string>",
"entries": [
{
"id": "<string>",
"fieldKey": "<string>",
"mapKey": "<unknown>",
"value": "<unknown>",
"optionalEntry": true
}
]
},
"comprehensionExpr": {
"iterVar": "<string>",
"iterVar2": "<string>",
"iterRange": "<unknown>",
"accuVar": "<string>",
"accuInit": "<unknown>",
"loopCondition": "<unknown>",
"loopStep": "<unknown>",
"result": "<unknown>"
}
},
"expiration": "<string>"
},
"labels": [
"<string>"
],
"riskLevel": "RISK_LEVEL_UNSPECIFIED"
}Creates a new issue for database changes or tasks. Permissions required: bb.issues.create
curl --request POST \
--url https://api.example.com/v1/projects/{project}/issues \
--header 'Content-Type: application/json' \
--data '
{
"approval": {
"approvalTemplate": {
"flow": {
"roles": [
"<string>"
]
},
"title": "<string>",
"description": "<string>"
},
"approvers": [
{
"status": "STATUS_UNSPECIFIED",
"principalId": 123
}
],
"approvalFindingDone": true,
"approvalFindingError": "<string>"
},
"grantRequest": {
"role": "<string>",
"user": "<string>",
"condition": {
"id": "<string>",
"constExpr": {
"nullValue": "NULL_VALUE",
"boolValue": true,
"int64Value": "<string>",
"uint64Value": "<string>",
"doubleValue": 123,
"stringValue": "<string>",
"bytesValue": "<string>",
"durationValue": "<string>",
"timestampValue": "2023-11-07T05:31:56Z"
},
"identExpr": {
"name": "<string>"
},
"selectExpr": {
"operand": "<unknown>",
"field": "<string>",
"testOnly": true
},
"callExpr": {
"target": "<unknown>",
"function": "<string>",
"args": "<array>"
},
"listExpr": {
"elements": "<array>",
"optionalIndices": [
123
]
},
"structExpr": {
"messageName": "<string>",
"entries": [
{
"id": "<string>",
"fieldKey": "<string>",
"mapKey": "<unknown>",
"value": "<unknown>",
"optionalEntry": true
}
]
},
"comprehensionExpr": {
"iterVar": "<string>",
"iterVar2": "<string>",
"iterRange": "<unknown>",
"accuVar": "<string>",
"accuInit": "<unknown>",
"loopCondition": "<unknown>",
"loopStep": "<unknown>",
"result": "<unknown>"
}
},
"expiration": "<string>"
},
"labels": [
"<string>"
],
"riskLevel": "RISK_LEVEL_UNSPECIFIED"
}
'{
"approval": {
"approvalTemplate": {
"flow": {
"roles": [
"<string>"
]
},
"title": "<string>",
"description": "<string>"
},
"approvers": [
{
"status": "STATUS_UNSPECIFIED",
"principalId": 123
}
],
"approvalFindingDone": true,
"approvalFindingError": "<string>"
},
"grantRequest": {
"role": "<string>",
"user": "<string>",
"condition": {
"id": "<string>",
"constExpr": {
"nullValue": "NULL_VALUE",
"boolValue": true,
"int64Value": "<string>",
"uint64Value": "<string>",
"doubleValue": 123,
"stringValue": "<string>",
"bytesValue": "<string>",
"durationValue": "<string>",
"timestampValue": "2023-11-07T05:31:56Z"
},
"identExpr": {
"name": "<string>"
},
"selectExpr": {
"operand": "<unknown>",
"field": "<string>",
"testOnly": true
},
"callExpr": {
"target": "<unknown>",
"function": "<string>",
"args": "<array>"
},
"listExpr": {
"elements": "<array>",
"optionalIndices": [
123
]
},
"structExpr": {
"messageName": "<string>",
"entries": [
{
"id": "<string>",
"fieldKey": "<string>",
"mapKey": "<unknown>",
"value": "<unknown>",
"optionalEntry": true
}
]
},
"comprehensionExpr": {
"iterVar": "<string>",
"iterVar2": "<string>",
"iterRange": "<unknown>",
"accuVar": "<string>",
"accuInit": "<unknown>",
"loopCondition": "<unknown>",
"loopStep": "<unknown>",
"result": "<unknown>"
}
},
"expiration": "<string>"
},
"labels": [
"<string>"
],
"riskLevel": "RISK_LEVEL_UNSPECIFIED"
}The project id.
Issue is the metadata for issues that track database operations and access requests.
Approval information for the issue workflow.
Show child attributes
Access grant request details if this is a grant request issue.
Show child attributes
Labels attached to categorize and filter the issue.
Risk level for the issue, calculated from statement types.
RISK_LEVEL_UNSPECIFIED, LOW, MODERATE, HIGH OK
Issue is the metadata for issues that track database operations and access requests.
Approval information for the issue workflow.
Show child attributes
Access grant request details if this is a grant request issue.
Show child attributes
Labels attached to categorize and filter the issue.
Risk level for the issue, calculated from statement types.
RISK_LEVEL_UNSPECIFIED, LOW, MODERATE, HIGH Was this page helpful?