is there anyway to create a listener that will automatically copy attachments from subtask to parent

Scott Federman January 8, 2018

Is there anyway to create a listener that will automatically copy attachments from subtask to parent? I am trying to keep all attachments at the same level and accessible. 

1 answer

0 votes
Bhushan Nagaraj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2018

Hey Scott,

You can write a scripted field using ScriptRunner or develop a custom-web-section to display related attachments.

Here is some sample code that will help you get started.

https://community.atlassian.com/t5/Answers-Developer-Questions/Re-Sub-Tasks-show-Parent-Issues-Attachments/qaq-p/545575/comment-id/83230#M83230

In the above example, Renjith talks about displaying parent issue attachments in the scripted field on sub-tasks. You will be modifying the code to implement the opposite.

Cheers

Bhushan

Scott Federman January 9, 2018

ok so im not really looking to do this in a scripted field but in the attachment section itself. Im also hoping that it copies to parent any time an attachment is added to a subtask,

Suggest an answer

Log in or Sign up to answer