Share one search with a dashboard or partner
Jira only
Scenario: a BI tool or an external partner needs a live list of the open bugs of one project, but should not be able to look at anything else in Jira.
Setup
- Click Create Stored JQL Key.
- Description:
BI – open bugs. - JQL:
project = SHOP AND issuetype = Bug AND statusCategory != Done - Fields:
summary,status,priority,created - Max results:
100
Wait for The JQL is valid. and click Add.
Call it
{
"options": { "method": "GET", "headers": { "Accept": "application/json" } },
"url": "/rest/api/3/search/jql"
}
For the next page, send the nextPageToken from the previous response:
{
"options": { "method": "GET", "headers": { "Accept": "application/json" } },
"url": "/rest/api/3/search/jql?nextPageToken=<TOKEN>"
}
Why this is safe
The JQL, the fields and the page size are fixed on the key. If the caller tries to send its own jql or fields, the request is rejected, so the key cannot be used to see other projects, other issue types or other fields. See Stored JQL keys.