API call to use for status report

Darla Sheehan October 31, 2017

Could you please tell me which API call we should use to retrieve the the time a transition occurred on a specific issue or issue type?

Ideally, we'd like to see the time a ticket was in each status.

https://docs.atlassian.com/jira/REST/server/ 

JIRA: 7.3.1

2 answers

0 votes
Domenico Manzo _Actonic_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 1, 2017

You cannot get it directly thru REST. So only one way to get it thru REST, as advised by Alexey:

https://docs.atlassian.com/jira/REST/cloud/?_ga=2.165222972.2057262106.1509345982-971217003.1491992739#api/2/issue-getIssue

And then iterate over changelog of each issue and calculate time in each transition.

Darla Sheehan November 8, 2017

Thank you!

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2017

Hello,

If you use Jira Java API then you have to use ChangeHistoryManager.

If you use Jira REST API then you can use GET /rest/api/2/issue/{issueIdOrKey} with expand=changelog

Darla Sheehan November 8, 2017

Thank you!! Used - /rest/api/2/issue/{issueIdOrKey}?expand=changelog

Suggest an answer

Log in or Sign up to answer