Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add Latest Attachments to a Comment

Matt Steadman
Contributor
June 24, 2024

Hi,

I have a workflow scenario where it is required to add 1 or more attachments to a Transition Screen.

I am wondering if there is anyway to add just the attachments that were added during that Transition Screen to a Comment either with Jira automation or any post function functionality (either built in or with an add on app)

1 answer

0 votes
Rachel Wright
Community Champion
June 29, 2024

Hi @Matt Steadman I know you can get the list of issue attachments and post their information (filename, size, creator, etc.) to a Jira comment using the built-in automation in Jira Cloud. Here's a little rule I created to show it.

automation.png

I used the "Issue attachments" condition and the "Comment on issue" action with the smart values: {{attachment.filename}} {{attachment.created}}

Here's more info on the smart values for attachments: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--attachment--

Additionally, here's some info about the "Issue attachments" condition: https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#Issue-attachments

I know that the entire list of attachments isn't exactly what you asked for but it's a start. :)

Also, I was thinking that you could trigger this rule to run only after the transition that collects the attachments succeeds. (Meaning add a condition to the rule that the issues has to be in x status, where x is the status directly after the attachment collection transition.)

I hope this helps get you closer to your desired outcome!

Rachel Wright
Author, Jira Strategy Admin Workbook

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