transition as executor

    Signature

    Helper workflowHelper
    Signature transition(Issue issue, String transitionName, User executor)
    Description

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

    Introduced in 0.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