Search code examples
jirajira-rest-apijira-rest-java-api

Jira - create rest api query


I'm using the Jira API with the following call: https://site.url/rest/api/2/search?jql=project=PROJECT&orderBy=Resolveddesc, however, it's not showing as per applied order by resolved desc. No static URL like - https://site.url/rest/api/2/search?%20Requests%22%20%20ORDER%20BY%20RESOLVED%20DESC

Also, I am looking to filter the following fields in RestAPI to improve the performance.

fields": ["summary","assignee","status"]

any help on this would be appreciated.


Solution

  • Without sample data, it is hard to know if you data support those filtering.

    Below should be what you want.

    https://site.url/rest/api/2/search?jql=project=PROJECT+order+by+resolved+desc&fields=summary,assignee,status