Hi Folks
Have a requirement where in need help on below,
1. How to get all issues [ entire dump of Issues/Bugs/Story/Task ] of a project using Rest API or All the projects in the tenant.
2. Tried with below API, at a time able to get only 100 records. Need complete dump of records from the api call instead of making startAt=0, startAt=100 so on ...
/rest/api/2/search?jql=project=ABC&maxResults=1000
It would be much helpful if we can get any direct solution for this
Hi @ChanduMohammad S ,
welcome to the Atlassian community!
On the cloud instance there is a limit on search so you can't retrieve all items in one shot. This is a limit in order to avoid perfomance issues. My suggestion is to use rest api with pagination https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro#pagination.
Hope this helps,
Fabio
Thanks for the above response, can you share an example how to use pagination for the above api call?
/rest/api/2/search?jql=project is not empty&maxResults=1000
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to use startAt=value with the offset. If in the first call you retrieved 100 tickets, the second call should have startAt=100 and so on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks again, Hope there are no other alternates for this to get the all items.
Is there a way we can add jql filters to get items that are In Progress, Done or On Hold?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can use jql parameter at your convenience.
Example : jql=project%3DABC%20and%20status%3DOpen
Please remember to encode your jql.
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Fabio Racobaldo _Herzum_
I am trying to filter items via type, issuetype = Story in Query parameter its not filtering the records can you help me?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey @ChanduMohammad S ,
your econded jql should be jql=project%3DABC%20and%20issuetype%3DStory
please use your real project key instead of ABC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.