Get the name of the last completed Query transition

Oleksandr Nikiga
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 26, 2021

Good day!
Is there a script with which I can get the "Name of the last completed transition, Issue"
Now I use this script in post-functions:

def workflowManager = ComponentAccessor.getWorkflowManager();

def workflow = workflowManager.getWorkflow(issue);
def wfd = workflow.getDescriptor()
def actionName = wfd.getAction(transientVars["actionId"] as int).getName()
return actionName

But I need to get the name of the transition in Listeners. 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events