Versions Compared

Key

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

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.

\uD83D\uDCD8 InstructionsInstructions

  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:

    Code Block
    languagejava
    {{ context.comment.body }}


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

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

    Image RemovedImage Added

  9. Publish your workflow.

...

Filter by label (Content by label)
page
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@bc3e0baf
showSpacefalse
sortmodified
showSpacetypefalsepage
reversetruetype
labelskb-how-to-article
cqllabel in ( "nunjucks" , "nunjucks-script" , "jmwe-cloud" , "jmwe-postfunction" ) and type = "page" and space in ( "SUPPORT" , "JMWEC" )labelskb-how-to-article