Get Attachment of a Trigger issue

Hi,

I would like to copy an attachment with the automations plugin. The attachment is in the trigger issue I wanted to get here with the filename {{# triggerIssue.attachments}} {{filename}}, {{/}}, but here I get nothing spent, although the triggerissue has an attachment. Other fields e.g. Summary are not a problem. If I do it with {{# issue.attachments}} {{filename}}, {{/}} everything works fine, but of course it's of the wrong issue.

greetings

1 answer

0 votes
Andreas Knecht Community Champion Jan 14, 2018

Hi Thomas,

We don't support copying attachments yet unfortunately - https://codebarrel.atlassian.net/browse/AUT-162.

We've got quite a few higher priority items in our backlog at the moment so it will be a while before we can get to this, but we'll let you know when we get a chance to work on this.

If you're just after the attachment names however (and perhaps links to their content) from the trigger issue, then this should work:

{{#triggerIssue.attachment}}{{filename}} - {{content}}, {{/}}

(note that it's 'attachment', not 'attachments')

Cheers,
 Andreas

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

132 views 6 8
View post

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