get Action Condition in any transition

Marzi Goodarzian September 2, 2020

Hi

I want write script that read condition of each outward transition from this status,

I wrote:

String status = issue.getStatus().getName();
JiraWorkflow workflow = ComponentAccessor.getWorkflowManager().getWorkflow(issue);
List ActionTransition = workflow.getLinkedStep(issue.getStatus()).getActions();

******

that Name and List of Outward Transition is shown, but for any of transition how can read (fetch) its conditions?? 

I means I want display roles that can execute this transition.

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events