Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get Attachment of a Trigger issue


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.


2 answers

0 votes
andreas Community Leader Jan 14, 2018

Hi Thomas,

We don't support copying attachments yet unfortunately -

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')


Hi Andreas,

Is it possible to do it the other way round and add attachments information TO the trigger issue from its linked item?

For example, Ticket SD-1 generated XYZ-1. If I add an attachment in XYZ-1, I want this information to be reflected in SD-1.

Thanks in advance for your assistance.

hi Andreas,

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

I´m getting an error:
Error while parsing additional fields. Not valid JSON.

Something has changed since 2018? 


Thank you @andreas 

I'll try

It worked using the code below: 

{{#issue.attachment}} Attachment - {{content}}, {{/}}
Comment by: {{author.displayName}}

 It will create a block on the description like:

description of new issue
attatchment of original issue
comments of original issue
author of comments of the original issue

I hope I could help : )

Like Alexey Saltykov likes this

Thank you, @André Ramos 

It work's fine for me!

This is what I was looking for.Attachment.png

Answer in first google page) Thx

Edit my comment:

I just copy-pasted the code and it worked. Many thanks!


hi @Gonzalo Benitez de lugo ,

I checked my automations and it is still working fine.
Please try to discover the line that is not valid.

@André Ramos 

It cannot be used. Is there a way to recommend me?


Screen Shot 2563-06-19 at 5.06.20 PM.pngMany thanks!

hi @Tipwanee Woradet 
The thumbs does not load. It´s a Jira Cloud limitation. Unfortunately we can only get the file address as a comment.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

813 views 7 24
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you