Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA Issue History

hash
Contributor
February 8, 2018

Is there anyway to extract JIRA issue History.

It helps us

 

Thanks

1 answer

1 vote
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.
February 8, 2018
hash
Contributor
February 10, 2018

What I can do after getting api. Sorry I’m new please explain 

 

thanks 

Nic Brough -Adaptavist-
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.
February 10, 2018

If you use the calls to the API to ask Jira questions, it will return data.

You will need to read that data, it will contain the issue history.

This is a vague guide to what you can do.  This was deliberate, because we don't actually know what you want to do with it.  Given "Extract Jira issue history", we can't really tell you more than "ask the API, it will give you the history"

hash
Contributor
February 10, 2018

Yes my team uses JIRA api to pull date into hive . Can I ask one more question . Is there any field in JIRA that can give the details of time in status means timespemt on each status for JIRA issues 

 

that will help us to run metrics 

 

thanks 

Nic Brough -Adaptavist-
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.
February 10, 2018

Your "hive" pull will need to read and understand the responses from Jira then.  Not really sure why you're pulling Jira data into a thermostat/home-control system, but it's good for you, why not!

Time in status and time spent on an issue are two very different metrics.  Simple example - the last script I wrote for a client took 30 minutes to write and test.  It was in "in progress" for a week.

There's no way a computer can translate between work done and elapsed time unless it is the thing doing all the work, and hence has both numbers already.

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.
February 10, 2018

You need to execute

GET /rest/api/2/issue/{issueIdOrKey}?expand=changelog

You will see in the result all status changes with dates. Unfortunately, the time, which was spent in each status, you should calculate yourself. You could subtract the date of the current status with the date of the previous status.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events