This article explains how provides the code snippet to copy remote links ofthe current issue to the new issue in Create issue(s) (JMWE app) post-function, using callJira filter.
Instructions
Navigate to the intended workflow to make the necessary changes in the edit mode.
Select the required transition.
Select the Post functions tab and click
Add post function
.Select Create issue(s) (JMWE app) and click
Add
.Enter the required details:
Select the checkbox Add a comment to the current issueand enter the following template in Comment to copy the remote links on the current issue to the newly created issue:Code Block language java {% for link in issue | remoteLinks %} {% set dummy = "/rest/api/2/issue/:issue/remotelink" | callJira(verb="post",params={"issue":newIssueKey},body=link) %} {% endfor %}
...
Publish the workflow to see the changes reflected on the new issue.
References
...