Abstract
This code snippet fetches the comment added during a transition
Logic
Access the text of the comment using transientVars
variable.
Snippet
transientVars.comment
Placeholders
NA
Examples
The output of this snippet is a String which you can use in:
A Groovy expression, for example to:
- Set a text field with the comment that was just created. Eg: Set a custom text field to the comment that was just added in one of the Set field value post-functions
A Groovy template, for example to:
- Notify of the most recent comment. Eg: Adding the most recent comment on the issue to its linked issues or as subject of an Email etc
- in one of the Comment issue post-functions
Subject/HTML body/Text body of Email issue post-function
<% if(transientVars.comment) {%> A comment: <%=transientVars.comment %> has been added on the linked issue <% } else {%> No comment was added on the linked issue <% } %>
References
Related articles