Back to  workflowHelper

Signature

HelperworkflowHelper
Signaturetransition(Issue issue, String transitionName, User executor)
Description


Transitions the issue using the transitionName on behalf of the issue executor

Introduced in0.13

Example use

You can use this method in case the workflow has some restrictions such as conditions or validators;

// If only Anthony can do transition "Close" 

def anthony = nodeHelper.getUser("anthony.hopkins")
if(issue.status.name == "In Progress" && replica.status.name == "Closed"){
  workflowHelper.transition(issue, "Close", anthony)
}

Comments

See Also

 

 


Back to  workflowHelper