I have added automation in Jira to create issue events. I want to send attachment details of the issue in the format:
{
"files":[ {
url:<url>,
filename:<filename>
}]
}
How to use smart values to create the above payload?
Attachments field is a list and you need work with lists. Please take a look on this doc - https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-lists/
Also please take a look on this sample smart value. I didn't test it but with docs above you should be able to do this.
[{{#issue.attachment}}{"url":"{{url}}","filename":"{{filename}}"}{{^last}},{{/}}{{/}}]
Regards,
Seba
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.