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

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

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

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,160 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you