I've created a groovy script that runs during a specific transition. It adds a simple comment by a specific user.
I'm expecting an email notification to be sent to the reporter, as is described in the notification scheme, but this is not working. It does when doing manual comments.
This is my groovy script:
import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.comments.CommentManager ComponentManager componentManager = ComponentManager.getInstance() CommentManager commentManager = componentManager.getCommentManager() commentManager.create(issue, "username", "Message bla bla bla", false)
That's because the "comment" event is fired by commenting on the issue. Adding a comment with code like this is not commenting on an issue, it's just adding comment data to it (I know, it's the same effect, but it's only adding data, it's not going through all the whole process). Your script will need to fire the additional event or send its own email.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs