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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.