How to copy attachments to Sub-task and opposite directory?

When transition happen in parent issue, create Sub-task. At this point, how to copy all attachments in

parent issue to Sub-task? Also, when add any attachments to Sub-task and transition happens in Sub-task,

how to copy all attachments in Sub-task to parent issue? Are they possible? If yes, how can I do this in workflow?

 

1 answer

0 votes

The short answer is "code" - you'll need to find or write a "post function" that can create a subtask (there's a few addons in the marketplace that will do this without any need for further coding) and then add the attachments.  Similarly, another post function could be written to push attachments up.

However, this requirement feels wrong to me - duplicating attachments doesn't feel right, especially in the quantity you'll be doing them.  It would be far better to educate your users about where the single traceable attachment is, rather than duplicating it and hence allowing for uncontrolled and un-trackable branching .

Could you explain why you're trying to do this?

The user just want to do it since the user want to see same attachments on parent task

and sub-task. I have already explained the user your comment.

This is a case of "the user is wrong" - there is no gain from doing this that outweighs all the problems that they will cause by doing it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

188 views 3 6
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