How to copy attachments from Parent to child Issues using Create on Transition
This article explains how to set a rule to copy attachments from a parent ticket to child ticket using the app Create on Transition.
Instructions
You need to add a post-function in the workflow associated with the parent issue in the create transition.
- To create a post function:
- Log into Jira as an Administrator and click > Issues.
- Under the Workflows section, select the intended workflow and click the Edit link.
- Select the transition to which you wish to add the post-function. Select the Post Functions option as shown below:
- Click the Add Post Function link. Select Create Issue from the available options.
- Once you add all the required fields to the post function, you see the post function as shown below:
- Click Update and publish the workflow.
- Now create an issue of any issue type.
In this example, an issue is created with Task type. - You will notice an issue is created from the parent issue and the attachment is also copied, as shown in the below screenshot:
The copy attachment post function works if the parent issue and child issue are from different projects. Or there should be two workflows in the same project and the parent issue should be in one project and the child issue should be in another.