transition as executor


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

    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( == "In Progress" && == "Closed"){
      workflowHelper.transition(issue, "Close", anthony)