i've created a JIRA workflow, and do need to use some "fast track transitions" as post functions in order to route the issue to the proper Status. those fast track transitions are the last Actions in the Transition.
the Transition itself seems to work - that means the history of the issue Shows the Transition was done, the user is displayed the correct Buttons of the next transitions - but the Status itself of the issue does not Change.
how to fix this?
oh, sorry for not including this information. i'm on latest version - that means JIRA 7.1.2 & ScriptRunner 184.108.40.206. Yes, i'd set a comment also (as "Additional issue actions" during the fast track transition) but it's not applied
Those fast-track functions... do they have mutually exclusive conditions?
Setting the comment may not happen if there is not a screen for that transition with comments on it, other answers suggest to use CommentManager to create the comment.
Try to add the comment using the commentManager
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.Issue Issue issue = issue def commentManager = ComponentAccessor.getCommentManager() def currentuser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser() //will create a comment to issue with currentUser being for author commentManager.create(issue, currentuser, "this is a comment", false)
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG