JIRA rest API getting issues

Hi, I want to in bulk get issues from the JIRA REST API, but can only seem to find a way to grab info 1 issue at a time, and only if i know in advance what the issue id is. is there any way to do this?

1 answer

1 accepted

1 vote
Accepted answer
Warren Levy Community Champion Sep 07, 2017

Hi Alex

There are different ways of getting all isssues, depending on what you're after (all issues in a sprint, all issues in a project, all issues). What call are you currently using?

Warren

not currently using any call, i just couldn't find a way to do it in the documentation. i want to be grabbing issues based off of time, say a call every hour for the previous hours issues and there changes. i assumed the audit log would hold this kind of information, but was sadly mistaken.

Warren Levy Community Champion Sep 07, 2017

Hi Alex

Probably this call will help you then :

/rest/agile/1.0/board/{boardId}/issue

For a given board, it returns all the issues. You can then pass a JQL filter in which looks at the last hour - see documentation here

Unfortunately, it's a jira server instance, not a cloud instance, and i can't find an equivalent call for jira server.

Warren Levy Community Champion Sep 07, 2017

The API is independent of whether it's cloud or server and that call exists for server. Right near the top of the documentation that I linked, there's anothe rlink for the equivalent server doc

That's awesome! thanks very much. now i realized that i actually asked the wrong question, I want to find audit logs for all the issues, to be able to track what changes and who changed stuff, etc etc. also why are there 2 separate API's for agile and the platform? i didnt know the agile one existed till now...

Warren Levy Community Champion Sep 07, 2017

Hi Alex

Little tricks of the trade - append (&)?expand=changelog to your call and you get the history of each issue. Use ? if its the first parameter or else &.

When you say 2 separate API's, the API's are the same, but there is documentation for each.

If you're happy, please mark this as answered.

Thanks

Warren

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,766 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you