Created
March 3, 2014 15:51
-
-
Save tarunsapra/9327900 to your computer and use it in GitHub Desktop.
Add comment as post-function of a transition using script runner.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.jira.ComponentManager | |
import com.atlassian.jira.issue.comments.CommentManager | |
ComponentManager componentManager = ComponentManager.getInstance() | |
CommentManager commentManager = componentManager.getCommentManager() | |
commentManager.create(issue, transientVars.context.caller, "Comment automatically generated...", false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment