curl --request POST \
--url https://api.example.com/v1/projects/{project}/issues:search \
--header 'Content-Type: application/json' \
--data '
{
"parent": "<string>",
"pageSize": 123,
"pageToken": "<string>",
"filter": "<string>",
"query": "<string>"
}
'{
"issues": [
{
"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"
}
],
"nextPageToken": "<string>"
}Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query. Permissions required: bb.issues.get
curl --request POST \
--url https://api.example.com/v1/projects/{project}/issues:search \
--header 'Content-Type: application/json' \
--data '
{
"parent": "<string>",
"pageSize": 123,
"pageToken": "<string>",
"filter": "<string>",
"query": "<string>"
}
'{
"issues": [
{
"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"
}
],
"nextPageToken": "<string>"
}The project id.
The parent, which owns this collection of issues. Format: projects/{project} Use "projects/-" to list all issues from all projects.
The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 10 issues will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
A page token, received from a previous SearchIssues call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to SearchIssues must match
the call that provided the page token.
Filter is used to filter issues returned in the list. Check the filter field in the ListIssuesRequest message.
Query is the query statement.
Was this page helpful?