JIRA REST API Example - Query issues
JIRA 5.0 and later.
The REST API allows you to send a JQL query and receive a subset issues.
Query of issues assigned to user 'fred'
In this example, we supply a single URL parameter (
jql) which contains the JQL query.
Query of issues assigned to user 'fred' whilst restricting the number of results
In this example, we supply two additional URL parameters (to
maxResults, which respectively specify the starting issue returned in the JQL results and the number of issues from that starting issue.
Query of issues assigned to user 'fred' with ordered results
In this example, we specify a sort order for the results using an "order by" clause in the JQL query itself.
Ordering JQL results is not conducted via a URL parameter in your REST API call.
Query of issues whilst restricting the result's fields
In this example, we supply an additional URL parameter (to
fields, which lists the JIRA fields returned in the JQL results. Each JIRA field in the list should be comma-separated — e.g.
Be aware that some extra data is always returned in the JSON response.
Query using POST
If the JQL query is too large to specify in a URL parameter, you should POST your JQL query (in JSON format) to the REST API '
search' resource instead. Any additional URL parameters (to
url) described above, should be included in your JSON-formatted JQL query.