JQL previous status

Is there any JQL command (from Atlassian or 3rd party plugin) to query an issue previous status? I need to check all issues whose last transition was from status B (previous) to A (current).

Currenly JQL support:

status CHANGED FROM "B" TO "A"

but I need the last transition only, and the above can return any transition in the issues history.

 

Thanks in advance,

2 answers

1 accepted

Another idea would be to use a scripted field which would show the last status (see Hennings answer how to get that) and then search for that one.

"Last Status" ~ "B" and status = "A"

Thanks, this is a good approach.

I'm not aware of such a JQL function. The closest you can currently get is

status CHANGED FROM "B" TO "A" and status = A

optionally add

and not status changed from "C" to "A"

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

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

119 views 0 5
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