When you add this post-function to a transition and trigger it, the add-on picks the value from the Comment text field and adds it as a comment on all the issues linked to the current issue through a selected link type. The value can be either a:
- Raw Value, when you select
Raw Value
as the Comment type. - Result of a Groovy expression, when you select Groovy expression as the Comment type. See
- Groovy editor in JMWE to write your Groovy script
- Expected Groovy expression input for each field
- issue, linkedIssue, currentUser and log variables you can use in your Groovy script
- Accessing the fields of an issue to use them in your Groovy script
- Groovy tester to test your written your Groovy script
- Result of a Groovy template, when you select
Groovy template
as the Comment type. See- Groovy editor in JMWE to write your Groovy templates
- Expected Groovy expression input for each field to write your Groovy templates
- issue, currentUser, textutils and log variables you can use in your Groovy templates
- Accessing the fields of an issue to use them in your Groovy templates
- Groovy tester to test your written your Groovy templates
Options
Send "Issue Commented" notification
You can notify the users when a comment is added on the issue by selecting the option Send "Issue Commented" notification
.
Run as
Run as user
Any user specified in this field will be the author of the comments that are created by the post-function. Leave it blank for the current user to be the author.
Comment visibility
Restrict to Group
Restricts the visibility of the comment to a specified group. When you input a valid group name in the Restrict to Group
field, the comment will be visible only to the members of the specified group. For no restriction, leave the field blank.
Restrict to Project Role
Restricts the visibility of the comment to a selected project role. When you select a project role from the Restrict to Project Role
drop-down, the comment will be visible only to the members of the selected project role. For no restriction, leave the field blank.
Restrict to Internal (Jira Service Desk only) - REQUIRES option "Send 'Issue Commented' notification"
Restricts the visibility of the comment to the Service Desk Agents and Collaborators only. This requires the option Send "Issue Commented" notification
to be selected.
Conditional execution
To execute this post-function based on the result of a groovy expression see Conditional execution using Groovy expression.