Comment Issue

This post function adds a comment to the issue that is being transitioned. It supports dynamic commenting using Jira Expressions.

Similar to other post functions in the app, it offers the flexibility to control its execution based on preconditions. By utilizing preconditions, you can determine whether the post function should be executed or skipped based on the evaluation of a Jira Expression. The precondition, defined in terms of a Jira Expression, should return a boolean value. If the result of the precondition is true, indicating that the specified condition is met, the post function will be executed. Conversely, if the precondition evaluates to false, the post function will be bypassed, allowing for conditional execution based on your specific criteria.

As “Issue(s) to operate on” , you have several options to choose from:

  1. Current Issue: The current issue being transitioned

  2. Sub-tasks of Current Issue: The sub-tasks of the current issue.

  3. Parent Issue of Current Sub-task: The parent issue of the current sub-task.

  4. Issues that Belong to Current Issue: All the stories that belong to the current epic.

  5. Epic of Current Issue: The epic issue associated with the current issue.

  6. Issues Linked to Issue with Any Link Type: The issues linked to the current issue using any link type.

  7. Issues Linked to Issue with Following Link Type: The issues linked to the current issue using a specific link type. You will be asked to provide the link type.

  8. Issues returned by JQL: The issues returned by a JQL. You need to provide a Jira Expression whose result will be used as the JQL to find the issues. You can also provide a static string in double quotes if you prefer a static JQL.

Available “Issue(s) to Operate on” Options
Dynamic JQL Query Example. issue?.key will be replaced by the key of the issue transitioned. The result will be “Epic Link” in (SCRUM-14) if the issue transitioned has the key SCRUM-14.
Static JQL Query Example

To determine what to comment on the issue, you need to use Jira Expressions. Again, you can either write a static value in double quotes or you can write a Jira Expression that will result in different values for different cases.

An expression that will add the name of the user who transitioned the issue as comment
This will comment the same sentence to each issue.