Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How do I get the target Status of a com.opensymphony.workflow.loader.ActionDescriptor


I have a hold of a  com.opensymphony.workflow.loader.ActionDescriptor


I can getName() = "Reopen"

I can getId() =51


But How do I the the status after the transition?


It seems that getMetaAttributes()  just give names back


I want to travel all actions and select the one with a specific end status. Doing a fake thing, I get:


No signature of method: com.opensymphony.workflow.loader.ActionDescriptor.getStep() is applicable for argument types: () values: []
Possible solutions: getView(), getAt(java.lang.String), getId(), getName(), grep(), setView(java.lang.String)


I know the solution is close in here:


1 answer

1 accepted

targetStepId = actionDescriptor.getUnconditionalResult().getStep()

StepDescriptor targetStepDescriptor = workflow.getDescriptor().getStep(targetStepId)

targetStepName = workflow.getLinkedStatus(targetStepDescriptor).getName() "Script=" + scriptName + " ScriptRunIdent=" + scriptRunIdent + " Message='Target Step Status: " + targetStepName + "'"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

214 views 1 6
Read article

Atlassian Community Events