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 vote

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,334 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot