Search issues (JQL)
search_issuesSearch Jira issues using JQL queries, handling pagination via cursor or offset depending on Cloud or Data Center.
Instructions
Search issues with JQL, e.g. 'project = PROJ AND sprint = 42 ORDER BY rank' or 'project = PROJ AND sprint IS NONE'. On Jira Cloud this uses enhanced search (/search/jql): the JQL must be bounded (include a restriction such as project, assignee, or key — a bare 'ORDER BY created DESC' is rejected), the response has no total, and paging is by cursor — pass the returned nextPageToken back in for the next page and stop when isLast is true. On Jira Data Center this uses the legacy /search endpoint, which pages with startAt and returns total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jql | Yes | JQL query string (must be bounded on Jira Cloud) | |
| expand | No | e.g. names, uris | |
| fields | No | Comma-separated fields (default: summary,description,status,assignee,reporter,issuetype,labels,components,priority,created,updated,duedate,project) | |
| startAt | No | Offset paging, Jira Data Center only; rejected on Cloud, use nextPageToken | |
| maxResults | No | ||
| nextPageToken | No | Jira Cloud only: cursor from the previous response's nextPageToken | |
| includeApproximateTotal | No | Jira Cloud only: add an extra request for an approximate match count (approximateTotal) |