Can you query of status that changed from Closed to Reopend to In Progress?

I am trying to figure out all of the JIRAs that were closed, and have been reopened, and then continued to go through the rest of the workflow. Is there a way to use the changed operator to query this?

3 answers

I did something similar but for how long the issue was in each status. I did it through SQL through. I do not believe there is a single JQL statement that can work through multiple previous statuses and maintain their ordering.

Do you want something more than:

status WAS "Closed" and status WAS "Reopened" and status not in ("Closed", "Reopened")

Yes, at my company, sometimes people reopen issues to edit one field and then immediately close them. I only want to see issues changed from closed to reopened and then actually went through the rest of the workflow. The was operator does not exclude the issues that were reopened and then closed again right away.

As I understood the question, Jenson wants to know that the last few states are valid workflow transitions even if the issue is closed. He wants to avoid the issues that are reopened and closed. You need the transition history and then process that list to get what Jenson is looking for.

The only thing that comes to mind is using the REST API to get the change log and then process through them to find the ones you are looking for. Get the list using the was clauses to get your list candidates. Then retrieve the change log for each identified issue. https://{host}/rest/api/2/issue/{issueid}?expand=changelog.  With the change log you can see the activity and make your decision on the ones you want to record as valid.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

914 views 3 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you