/
Copy the comment added during a transition to a text field.

Copy the comment added during a transition to a text field.

This article explains how to get the comment added during a transition (on the transition screen) and set it to a text field using Set issue fields JMWE post-function.

Instructions

  1. Navigate to the intended workflow and open it in Edit mode.

  2. Select the required transition.

  3. Select the Post functions tab and click Add post function.

  4. Add the Set issue fields post-function.

  5. Select the target issue and target field in Target issue(s) and Add field(s) respectively, and add the following template as Value for the added field:

    {{ context.comment.body }}


    In the below example, a field named “Dev” of type “Text Field (multi-line)” is added.

     

  6. Select the checkbox “Delay the execution of this post-function” under “Delayed execution” and select a delay of 3 seconds.

  7. Click Add

  8. Place the above JMWE post-function below the "Add a comment to an issue if one is entered during a transition" Jira built-in post-function.

     

  9. Publish your workflow.

When the transition is executed on a ticket, the comment added on the transition screen, if any, is copied to the field added in the above post-function.

 

References

Related articles

 

Related content

Code snippet to add the user selected in a single-user picker field to a Jira group.
Code snippet to add the user selected in a single-user picker field to a Jira group.
Read with this
Comment issue(s)
Comment issue(s)
More like this
How to add a comment added during the transition of the parent issue as a comment on its linked issues
How to add a comment added during the transition of the parent issue as a comment on its linked issues
More like this
Fetch the comment added during a transition
Fetch the comment added during a transition
More like this
Copy field value (the value before the transition) to another field
Copy field value (the value before the transition) to another field
More like this
Fetch the comment added during a transition
Fetch the comment added during a transition
More like this