Local Jira - Search API JQL
This example demonstrates how to retrieve all issues from one Project using the Search for issues using JQL enhanced search (GET) API
Prepare a Data Source
We utilize the /rest/api/3/search/jql
endpoint to retrieve all issues from one project. However, this endpoint only provides 50 issues by default at a time. To enable pagination for this endpoint, we include the nextPageToken
variable in the following manner:
/rest/api/3/search/jql?jql=project="PROJECT-KEY"&nextPageToken={nextPageToken}

Setting up the Paginated Data Source
To create a new data source and utilize the Paginated Data Source
type, you need to first choose the data source for pagination and then specify the pagination type. In this scenario, we opt for Cursor-based
and select the previously established nextPageToken
variable in the Cursor Variable
section.
The Cursor Selector
will target the cursor from the response:
$.nextPageToken
The Result Selector
will target the list of items that are of interest:
$.issues[*]
The Finish Condition
has to be set to Empty target.
The Finish Target
will target the response nextPageToken
that is empty if there is no more page to fetch.
$.nextPageToken
