Skip to main content
Skip table of contents

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:

CODE
/rest/api/3/search/jql?jql=project="PROJECT-KEY"&nextPageToken={nextPageToken}
Screenshot 2025-03-03 at 14.35.49.png

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:

CODE
$.nextPageToken

The Result Selector will target the list of items that are of interest:

CODE
$.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.

CODE
$.nextPageToken
Screenshot 2025-03-03 at 14.46.43.png
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.