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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

182 views 0 2
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