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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,414,319
Community Members
 
Community Events
170
Community Groups

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

2 answers

@[deleted] 

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

 

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

Deleted user Oct 23, 2020

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.

0 votes
andreas Rising Star 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

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.

Deleted user Apr 17, 2020

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

Thank you @andreas 

I'll try

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

Like Alexey Saltykov likes this

Thank you, @[deleted] 

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.

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}}
{{/}}

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events