Forums

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

Status activity stream does not match the issue current status

Karl Zipser May 23, 2019

I have been using curl requests to retrieve the status transitions for issues to determine the duration time of an issue in a status. This curl request retrieves that information: https://<domain>/rest/api/2/issue/<issue key>?expand=changelog. I noticed with several issues that the name of the last status in the json array does not match the current status for the issue.

I am relatively new with exposure to Jira, so I need to know if I am missing something, or if this is a bug.

2 answers

0 votes
Karl Zipser June 10, 2019

Hi Zoryana, 

I think I answered my own question since the time I created this post. Here is a typical history item inside the JSON for a JIRA issue:

<pre>

                            [created] => 2019-04-04T16:24:43.000+0000
                            [items] => Array
                                (
                                    [0] => Array
                                        (
                                            [field] => status
                                            [fieldtype] => jira
                                            [from] => 10053
                                            [fromString] => New
                                            [to] => 25351
                                            [toString] => PMO Review
                                        )

                                )
</pre>
I had previously used the "fromString" as the actual or current status. It is the
"toString" that is and does match the current status.

Karl

Zoryana Bohutska _SaaSJet_
Atlassian Partner
June 10, 2019

@Karl Zipser I'm really happy that you had found solution!

0 votes
Zoryana Bohutska _SaaSJet_
Atlassian Partner
June 6, 2019

Hi@Karl Zipser 

Welcome to the community!

You can get information about the duration of transitions using a plugin from the marketplace, such as Time in Status for Jira Cloud by SaaSJet. It can be very useful for you because of its functions automatically calculates how long an issue has been in its current status.

Also, this plugin generates other reports: Average time in status, Assignee time, Status Entrance Date, Time in Status per Date, Status Count and Transition Count.

To analyze the reports closer, you can export them as XLS or CSV files. Also, you can view all reports as charts (Pie, Bar and Area Charts) and export them (as PNG, JPEG or PDF files).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events