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.

0 votes

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
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,817 views 2 7
Join discussion

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