Comment current issue
Overview
The Comment current issue post function allows you to add a predefined comment to the issue automatically when a workflow transition is executed. You can also use macros to add dynamic data to the comment text.
Configuration
Define the content of the comment in the Comment text field (e.g. “This is a comment added automatically upon executing a workflow transition”)
Use macros to add dynamic data (see the Macros section below)
Set the Viewable by field to restrict the visibility to a certain group or project role
Select a Jira user group in the Group field if Group was set in the Viewable by field
Select a project role in the Project role field if Project role was set in the Viewable by field
Activate Send notification and fire event option if you want the post function to trigger the Issue commented event and send the notification according to the project’s notification scheme
Select if the post function should be executed by the current or another user in the Action executor field (see User Permissions below)
If you have selected Current user option, the post function will be executed by the user making the workflow transition
If you have selected Another user option, provide a user in the User field, so that the post function will be executed by this user
Activate the JQL condition option and define the JQL query that has to be met by the issue in order to execute the post function (e.g. “type = Bug and Priority = Blocker”)
Activate the Executor condition option if you want the post function to be executed only if the user is or isn’t in a certain Jira user group or project role
Select if The executor has to be or can’t be a member of a certain Jira user group or project role
Select a Jira user group in the Group field if Group was set in the member of a field
Select a project role in the Project role field if Project role was set in the member of a field
User Permissions
The user set as Action executor in point 4 needs to have the Browse Projects and Add Comments permissions in the project of the issue in order to execute the post function.
Macros
Macros can be used to add dynamic data related to the issue or the project to the comment text. Following macros are available:
Use cases
When a bug is transitioned to Done, the project manager is mentioned in a comment with the resolution date, environment, etc.