Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I query on number of times in a status?

I'd like to find the number of times issues were moved to a particular status type that would result in a count - e.g. 3 times in status x.

 

How do I structure that?

 

Thanks!

7 answers

4 votes

You can not do it in Jira interface. But you could use Jira Rest Api to receive the history of an issue and find the number of times the status was changed to the required status in Excel or other similair application. You would need to use GET /rest/api/2/issue/{issueIdOrKey}  with changelog option. You can find more info here:

https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-issue-issueIdOrKey-get

Hi Alex,

The rest api produces a result which is similar to below.

How can align that to excel view.

 

Filter for status.PNG

2 votes
Meg Holbrook Community Leader Mar 07, 2018

There might be an easier way than mine, but here is how I do it: (I also employ AIO reports addon for reporting)

Filter: project = EncompassHelpDesk and status was "Waiting for support" during ("2018/02/01","2018/02/28")

Once results are exported to excel, I create a pivot table and group by key. 

Result is a table that shows how many times each issue was in (my case) waiting for support. 

 

1.png2.png

Hi @Meg Holbrook, I ran the above query and got the results, but each issue only appeared once, so I can't do the count, even though I'm very sure that they had moved to the status several times. I don't have AIO report. Thanks.

Like David Leal likes this
Meg Holbrook Community Leader Oct 03, 2018

Hey @Kenny Nguyen - did you expand your date range enough to capture all the possible times it would have transitioned into that status?

Hi, 

is it still working? because im not able to do it , i have same problem as Kenny. I exported but  all tasks are mentioned only once. i dont have AIO reports ... is that the problem ? Thank you 

 

Skyline

Like # people like this

I have the same problem, I get only one entry per issue key. When I exported the excel file I export all fields, I get some dates, such as: Created, Updated, Las Viewed and Original Entry Date, but I don't see a way to get the historic information each time a given status was reached in the line I have exported.

Like Eran Flom likes this

The problem that the query (excel file) will only capture the latest status of the issue, not all statuses that the issue was in! 

I am not sure how the JQL worked for @Meg Holbrook  Please Advice. 

Like Eran Flom likes this
Meg Holbrook Community Leader Jun 16, 2020

The important part is in bold, which should pull the same issue multiple times.

 

project in (_________) AND issuetype = "Service Request" and status was "Waiting for support" during (startOfMonth(-1), endOfMonth(-1))

I am sorry - but even with bold part - it only pull each issue once.

Is there a solution to this? Anyone manage to make this work?

You can make use of the Easy BI plugin to do these kinds of aggregations.

https://marketplace.atlassian.com/plugins/com.eazybi.jira.plugins.eazybi-jira/server/overview

Meg Holbrook Community Leader Mar 08, 2018

Am I the only one who doesn't consider eazybi to be incredibly user-friendly?

Maybe I'm reporting-challenged.

I agree that eazybi is not incredibly user-friendly. However, it does help us do a lot of reporting right within JIRA. In the earlier case, we had to do all of the complex reporting by syncing the issues with a database and then use Tableau to do the complex reports.

Hi,

you can have a look at our free add-on Status History which will show you history of statuses for each issue - more details you can find here.

If you need to generate report or analyze data regarding issue statuses, you can also try Status History PRO, which has reports (especially Changing Status History Report in your case) and  customizable viewer.

Regards,

Lime Trees Support Team

Thanks it a great solution, but is paid version and we already pay for having Jira. This is something we may expect having out of the box in Jira, because if we can design a workflow we would like to know when you reach a particular status and how many time is reached. 

Like # people like this

Hi,

I want to get the status of an issue without opening the Jita site, directly into excel. Can someone share the van for it. Many thanks 

Hello @Imran 

The add-on Time in Status for Jira Cloud by SaaSJet can meet your expectations.

It generates such reports (all of them are available for export):

- Time in status - automatically determines for how long your issues had been staying in each status

- Status Count - shows how many times an issue has been in each status

- Transition Count - shows how many times an issue went from status to status

Also, this app will show you: Average time in status, Assignee time, Status Entrance Date and Time in Status per Date.

All data from reports you can view as tables or as charts.

 

Regards

You can use Time in Status by OBSS, which creates reports showing how many times each status or transition was used. It also shows how much time each issue spent on each status, assignee or group. Can export data as XLS or CSV.

https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=server&tab=overview

For cloud, you can use Status Time add-on. It generates status count report in addition to status time report.

If you are looking for a free version, you can try Status Time Free.
StatusCount.gif

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

89 views 3 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you