curl --request PATCH \
--url https://api.example.com/v1/projects/{project}/issues/{issue} \
--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"
}Updates an issue’s properties such as title, description, or labels. Permissions required: bb.issues.update
curl --request PATCH \
--url https://api.example.com/v1/projects/{project}/issues/{issue} \
--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 list of fields to update.
If set to true, and the issue is not found, a new issue will be created.
In this situation, update_mask is ignored.
Issue is the metadata for issues that track database operations and access requests.
Approval information for the issue workflow.
Show child attributes
The approval template being used for this issue.
Show child attributes
Human-readable title of the approval template.
Detailed description of when this template applies.
Whether the system has finished finding a matching approval template. False means the backend is still searching for matching templates.
Error message if approval template finding failed.
Access grant request details if this is a grant request issue.
Show child attributes
The role being requested for the user. Format: roles/EXPORTER.
The user who will receive the role. Format: users/{userUID}.
Optional conditional expression that limits when the grant applies.
Show child attributes
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree.
A literal expression.
Show child attributes
null value.
NULL_VALUE boolean value.
int64 value.
uint64 value.
double value.
string value.
bytes value.
protobuf.Duration value.
Deprecated: duration is no longer considered a builtin cel type.
protobuf.Timestamp value.
Deprecated: timestamp is no longer considered a builtin cel type.
An identifier expression.
Show child attributes
Required. Holds a single, unqualified identifier, possibly preceded by a '.'.
Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
A field selection expression, e.g. request.auth.
Show child attributes
Required. The target of the selection expression.
For example, in the select expression request.auth, the request
portion of the expression is the operand.
Required. The name of the field to select.
For example, in the select expression request.auth, the auth portion
of the expression would be the field.
Whether the select is to be interpreted as a field presence test.
This results from the macro has(request.auth).
A call expression, including calls to predefined functions and operators.
A list creation expression.
Show child attributes
The elements part of the list.
The indices within the elements list which are marked as optional elements.
When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
A map or message creation expression.
Show child attributes
The type name of the message to be created, empty when creating map literals.
The entries in the creation expression.
Show child attributes
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
The field key for a message creator statement.
The key expression for a map creation statement.
Required. The value assigned to the key.
If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
Whether the key-value pair is optional.
A comprehension expression.
Show child attributes
The name of the first iteration variable. When the iter_range is a list, this variable is the list element. When the iter_range is a map, this variable is the map entry key.
The name of the second iteration variable, empty if not set. When the iter_range is a list, this variable is the integer index. When the iter_range is a map, this variable is the map entry value. This field is only set for comprehension v2 macros.
The range over which the comprehension iterates.
The name of the variable used for accumulation of the result.
The initial value of the accumulator.
An expression which can contain iter_var, iter_var2, and accu_var.
Returns false when the result has been computed and may be used as a hint to short-circuit the remainder of the comprehension.
An expression which can contain iter_var, iter_var2, and accu_var.
Computes the next value of accu_var.
An expression which can contain accu_var.
Computes the result.
Duration after which the grant automatically expires.
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
The approval template being used for this issue.
Show child attributes
Human-readable title of the approval template.
Detailed description of when this template applies.
Whether the system has finished finding a matching approval template. False means the backend is still searching for matching templates.
Error message if approval template finding failed.
Access grant request details if this is a grant request issue.
Show child attributes
The role being requested for the user. Format: roles/EXPORTER.
The user who will receive the role. Format: users/{userUID}.
Optional conditional expression that limits when the grant applies.
Show child attributes
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree.
A literal expression.
Show child attributes
null value.
NULL_VALUE boolean value.
int64 value.
uint64 value.
double value.
string value.
bytes value.
protobuf.Duration value.
Deprecated: duration is no longer considered a builtin cel type.
protobuf.Timestamp value.
Deprecated: timestamp is no longer considered a builtin cel type.
An identifier expression.
Show child attributes
Required. Holds a single, unqualified identifier, possibly preceded by a '.'.
Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression.
A field selection expression, e.g. request.auth.
Show child attributes
Required. The target of the selection expression.
For example, in the select expression request.auth, the request
portion of the expression is the operand.
Required. The name of the field to select.
For example, in the select expression request.auth, the auth portion
of the expression would be the field.
Whether the select is to be interpreted as a field presence test.
This results from the macro has(request.auth).
A call expression, including calls to predefined functions and operators.
A list creation expression.
Show child attributes
The elements part of the list.
The indices within the elements list which are marked as optional elements.
When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
A map or message creation expression.
Show child attributes
The type name of the message to be created, empty when creating map literals.
The entries in the creation expression.
Show child attributes
Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to the node.
The field key for a message creator statement.
The key expression for a map creation statement.
Required. The value assigned to the key.
If the optional_entry field is true, the expression must resolve to an optional-typed value. If the optional value is present, the key will be set; however, if the optional value is absent, the key will be unset.
Whether the key-value pair is optional.
A comprehension expression.
Show child attributes
The name of the first iteration variable. When the iter_range is a list, this variable is the list element. When the iter_range is a map, this variable is the map entry key.
The name of the second iteration variable, empty if not set. When the iter_range is a list, this variable is the integer index. When the iter_range is a map, this variable is the map entry value. This field is only set for comprehension v2 macros.
The range over which the comprehension iterates.
The name of the variable used for accumulation of the result.
The initial value of the accumulator.
An expression which can contain iter_var, iter_var2, and accu_var.
Returns false when the result has been computed and may be used as a hint to short-circuit the remainder of the comprehension.
An expression which can contain iter_var, iter_var2, and accu_var.
Computes the next value of accu_var.
An expression which can contain accu_var.
Computes the result.
Duration after which the grant automatically expires.
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?