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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

144 views 5 9
Read article

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