Skip to content

Instantly share code, notes, and snippets.

@tarunsapra
Created March 3, 2014 15:51
Show Gist options
  • Save tarunsapra/9327900 to your computer and use it in GitHub Desktop.
Save tarunsapra/9327900 to your computer and use it in GitHub Desktop.
Add comment as post-function of a transition using script runner.
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