Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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
@[deleted]
It cannot be used. Is there a way to recommend me?
Many 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Andreas,
{{#triggerIssue.attachment}}{{filename}} - {{content}}, {{/}}
I´m getting an error:
Error while parsing additional fields. Not valid JSON.
Something has changed since 2018?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked using the code below:
{{issue.description}}
--
{{#issue.attachment}} Attachment - {{content}}, {{/}}
--
{{#issue.comments}}
Comment by: {{author.displayName}}
{{body}}
{{/}}
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 : )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, @[deleted]
It work's fine for me!
This is what I was looking for.
Answer in first google page) Thx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Edit my comment:
I just copy-pasted the code and it worked. Many thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i tried using the above automation but it is not working for me. I am trying to add attachment in JIRA project which should provide a link in JIRA SD ticket.
Below is the code used.
{{issue.description}}
--
{{#issue.attachment}} Attachment - {{content}}, {{/}}
--
{{#issue.comments}}
Comment by: {{author.displayName}}
{{body}}
{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.