Automation Rule - Copying an Attachment from originating to new auto-created ticket

Clint Moollen October 21, 2024

Hi,

I'm trying to copy an attachment to and auto-created link ticket. All my other required fields as well as auto-categorising rules are working. 

I have a rule to also include the attachment, but the attachments are not pulling though. The rule fires with no errors. This is what I have based on some searching that I have done. added to additional fields section of the automation rules.

{ "attachment": { "copy": "{{triggerIssue.fields.attachment}}" } }

 

I've also attached screenshot. Can anyone assist? Thank you :)

Screenshot 2024-10-21 112407.png

 

2 answers

2 accepted

5 votes
Answer accepted
Tobias H
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2024

Hi Clint!

Instead of relying on the JSON code, have you tried checking the "Attachment" box in the "Choose a field to set" dropdown and use copy from trigger issue?

Screenshot 2024-10-21 115841.pngScreenshot 2024-10-21 115951.png

 

Best,
Tobias

Clint Moollen October 21, 2024

Thanks for this. Will try this and revert

Clint Moollen October 21, 2024

Peeeerfect. Its works!!! Thanks Tobias.

Like Tobias H likes this
Tobias H
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2024

Amazing, glad to hear that it worked! :D

Like Clint Moollen likes this
Clint Moollen October 21, 2024

Any way to show link/relationship (ticket) info between the original and new ticket created?

Tobias H
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2024

You should be able to add that in the choose field drop down.

Look for "Linked issue" and then set up the correlation that fits :)

1 vote
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2024

Hi @Clint Moollen 

This should be possible, but I don't think this can be done via JSON.

See JRACLOUD-78891 

This states it con only be done in certain triggers or actiobns.

Clint Moollen January 22, 2025

Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events