Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find a old transition status??

Bunty
Contributor
March 6, 2019

Hello All,

In Jira workflow how to get previous values of a property when transition happened.

In my scenario, Transition can happen from any status to any other status, Now i want to know what is the previous status when transition happen.

Please help!

Thanks in advance,

Bunty

2 answers

1 accepted

3 votes
Answer accepted
Tuncay Senturk _Snapbytes_
Community Champion
March 12, 2019

Hello 

In workflow post function you can use below methods to get issue before transition and after transition

Issue issueAfterTransition = (Issue) transientVars.get("issue");
Issue issueBeforeTransition = (Issue) transientVars.get("originalissueobject");

So, you can use issue.getStatus() for both to get old and new value.

Hope it helps

Tuncay

Bunty
Contributor
March 20, 2019
0 votes
Tuncay Senturk _Snapbytes_
Community Champion
March 20, 2019

You're very welcome 

Suggest an answer

Log in or Sign up to answer