Versions Compared

Key

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

...

  1. Navigate to the intended workflow to make the necessary changes in the 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 issues for which the field should be set under “Target Issue(s)”.

  6. Select the desired field and add the below Nunjucks template:

    Code Block
    languagejava
    {{ context.changelog.fields["customfield_10062"].from_string }}

    Replace 10062 with the id of the source field.

  7. Select the checkbox “Run this post-function only if a condition is verified” under “Conditional Execution” and add the below Condition:

    Code Block
    languagejava
    {{ context.changelog.fields["customfield_10062"] }}

    Replace 10062 with the id of the source field. The above condition checks that the field value is changed during the transition. Check the documentation here.

...

Info

Note: The post-function must be placed after the “Update change history for an issue and store the issue in the database” built-in post-function.

...

References

...