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

Is there a way to query issues that are in the last status of the "To Do" status category?

Rajat Sud I'm New Here Apr 29, 2021

We are looking to generate some stats around the health of our teams' backlog. 

Our workflows currently may have a status (different for different teams) in the "To Do" status category that represents a refined state.

We are looking to query those issues that are in the last of the "To Do" status category before they get transitioned to being in a state belonging to an "In Progress" status category.

2 answers

1 vote
Benjamin Community Leader Apr 29, 2021

Hi @Rajat Sud ,

Here's a query to use:

project in (PROJECT) AND status changed from "In Progress" to ("To Do")

Rajat Sud I'm New Here Apr 30, 2021

Thanks for the response. It's not the "status" that I'm after....
We have about 7-8 workflows (one for each issue type). Each of the workflows has several statuses, each belonging to 1 of 3 status categories (To Do, In Progress, Done).

Now, I am looking to query all the issues that are in a "To Do" status category - but only in a status(es) that precedes the transition to a status in the "In Progress" status category. 

Hope it wasn't too confusing :)

Benjamin Community Leader Apr 30, 2021

Thanks for the clarification. JQL query does not have historical searches for Status Category.

 

Depending on how your workflows are, you probably could use a combination of the status query above to obtain a similar result. 

Like Chris Buzon likes this
Chris Buzon Community Leader Apr 30, 2021

Hey Rajat.

There isn't a way to check the historical statusCategory in a query, just the statuses themselves, or the current statusCategory.

Since you have workflows per issue type you can do this, though it can be a kind of nasty looking query.  This type of query sometimes causes problems with boards/reports. 

You'll need to know exactly which of the ToDo statuses come before the In Progress ones (by checking the workflow) and then chaining together clauses.  I've added the issuetypes here just in case you share status names between workflows, but you don't strictly need it if each status is unique to its workflow.


(issuetype = X AND status = status1) OR (issuetype = Y AND status = status2) OR (issuetype = z AND status in (status3, status4))


Like # people like this
0 votes
Chris Buzon Community Leader Apr 29, 2021

I may misunderstand the question - but you can query ~ status was in ("status name") - so you should be able to.    You can also add dates to that as a sub-clause.

Is that what you mean?

Chris Buzon Community Leader Apr 29, 2021

Alternatively - the app "Time In Status" can give you a very good breakdown of times in each status, status category, number of transitions, number of times a ticket was assigned to someone..etc. 

Suggest an answer

Log in or Sign up to answer
TAGS

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