Versions Compared

Key

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

This article explains how to copy remote links ofthe current issue to the new issue in Create issue(s) (JMWE app) post-function, using callJira filter.

Instructions

  1. Navigate to the desired workflow transition and add “Create issue(s) (JMWE app)” post-function.

  2. Fill in the required details.

  3. Select the checkbox “Add a comment to the current issue” and input the below template:

    Code Block
    languagejava
    {% for link in issue | remoteLinks %}
    {% set dummy = "/rest/api/2/issue/:issue/remotelink" | callJira(verb="post",params={"issue":newIssueKey},body=link) %}
    {% endfor %}

This will copy the remote links on the current issue to the newly created issue. Note that no comment will be added to the current issue since the template returns nothing. 

...

References

...