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 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. Select Create issue(s) (JMWE app)” post-function and click Add.

  5. Fill in Enter the required details.:
    Select the checkbox “Add Add a comment to the current issue” issueand input enter the below following 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

...

  1. copies the remote links on the current issue to the newly created issue.

...

No comment will be added to the current issue since the template returns nothing. 

...

Publish the workflow to see the changes reflected on the new issue.

References

...