---
title: "Copy the comment added during a transition to a text field."
canonical: "https://support.appfire.com/space/SUPPORT/431522666/Copy%20the%20comment%20added%20during%20a%20transition%20to%20a%20text%20field."
format: markdown
---
This article explains how to get the comment added during a transition (on the transition screen) and set it to a text field using [https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465504849](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465504849) 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 [https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465504849](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465504849) 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:
  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 <u>***below***</u> 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

- [Using Nunjucks Templates](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465503811)
- [context.comment](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465373277/Variables+in+Nunjucks+Templates#The-following-property-is-available-when-the-user-provided-a-comment-on-the-transition-screen-(in-a-post-function)%2C-or-the-event-based-action-is-triggered-following-the-posting-of-a-new-comment%3A)

## Related articles


> Macro (contentbylabel)