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
Community Members
Community Events
Community Groups

How do I get attachment names from multiple issues with smart values


I have an automation rule that works across all the issues linked to an epic. We are sending issue details to an external process via webhook. Using {{#issues}}{{key}}, {{/}} in the body of the web request I get a comma separated list of all the keys. If I run {{attachment.filename}} against ONE issue (different rule to test the smart value) I get a comma separated list of the attachments for that issue. What I would really like is a list of all the issue keys linked to the epic, and all the attachments associated with those issues. They don't even have to be associated pairs, I just need the values. I tried variations of:

{#issues}}{{key}}{{attachment.filename}}, {{/}}

{#issues}}{{key}}, {{attachment.filename}}, {{/}}

{#issues}}{{key}} {{#attachments}}{{filename}}, {{/}}

{#issues}}{{key}} {{/}}, {{#attachments}}{{filename}}, {{/}}


and to attempt just the file names:


{#attachments}}{{filename}}, {{/}}


the best I got was a list of issue keys followed by a string of commas and spaces. 



1 answer

1 accepted

0 votes
Answer accepted

I found the answer -- {{#issues}}{{key}}_{{attachment.filename}} {{/}} produces string:

XXX-001_FileName1, FileName2, FileName3 XXX-02_FileNameX, ..., ...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

333 views 2 7
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