Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

A workflow post-function that creates a comment on all issues linked to the current issue through a selected link type. The text of the comment can be either a fixed text or the result of the evaluation of a Groovy expression.


To add the Comment linked issues post-function to a transition :

  1. Click Edit for the workflow that has the transition you wish to configure the post-function on.
  2. In the Workflow Designer, select the transition.
  3. Click on Post Functions in the properties panel.
  4. Click on Add post function.
  5. Select Comment linked issueissues from the list of post-functions.
  6. Click on Add to add the post-function on the transition.
  7. Select the link from the Issue Link drop-down.
  8. Select comment type from the Comment type drop-down.
  9. Input a value in the Value Comment text field based on the comment type selected in step 8.For information on how to write a 'Groovy expression' see How to write a groovy expression.
  10. Select the options provided to add the required parameters.
  11. Click on Add to add the post-function to the transition.


Panel

Related links :

For information on where the post-function needs to be placed on a transition, see Placing post-functions on a transition.

Refer to the Use cases for post-functions page for use cases for this post-function.


When you add this post-function to a transition and trigger it, the add-on picks the value from the Value field 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 constant represented as a String or the result of the evaluation of a Groovy expression:

  • in the case of a constant, it can be a String (for text typed fields), or the string representation of a complex value, such as a Version name, a username, a Project key, etc.
  • In the case of a Groovy expression, [...to be completed]

    :

    Customize this post-function using the additional options provided as a part of the post-function. The  The options are are

    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 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.

    • 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.