...
Abstract
This code snippet fetches the comment added during a transition
Logic
Access the text of the comment using transientVars
variable.
Snippet
Code Block | ||||
---|---|---|---|---|
| ||||
transientVars.comment |
Placeholders
NA
Examples
The output of this snippet is a String which you can use in: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:
...
Subject/HTML body/Text body of Email issue post-function
Code Block | ||||
---|---|---|---|---|
| ||||
<% if(transientVars.comment) {%>
A comment: <%=transientVars.comment %> has been added on the linked issue
<% } else {%>
No comment was added on the linked issue
<% } %> |
display the comment in a Calculated Text custom field.
References
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...