Copy attachments when linking Jira Data Center issues using Automation
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When an issue link is created, you want to copy attachments from the current issue (also called the trigger issue) to the linked issue using an automation rule.
This article applies to Jira Data Center only. For Jira Cloud, please see Sync Comments and Copy Attachments in Linked Jira Cloud Work Items.
Solution
Create an automation rule
Navigate to Administration (⚙ ) > System > Global Automation if you're using tickets from different projects.
That way, you can select the Scope as All projects or Multiple projects.
If issue links will be created between issues of the same project, you can select Single project under Scope.
Create the rule with the following components:
Set the Trigger: Choose "Issue Linked" as the trigger and configure the trigger to activate when an issue is linked with your specific link type (for example, "Blocks"). You can also select multiple link types.
Add Condition (Optional): If you want to ensure that the rule only applies to specific issue types, for example, add a condition and use the "Issue fields condition" to check if it is the intended issue type.
New branch: Choose "Branch rule / related issues" to perform actions on the linked issue. In the branch, select "Linked issues" and specify the link type(s).
Add the Action: Now add an action inside this branch: "Edit issue", and configure this action to copy attachments from the trigger issue to the linked issue.
Save and test the rule.
The completed rule should look similar to this:

Related article: Automation rule to copy a field from a Parent to a Child issue as soon as the Child issue is linked to it
Was this helpful?