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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're very welcome
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.