JWT field code

%{issue.attachments}

Jira expression field codeissue?.attachments?.map(a => a.filename)
Example outputfile1.txt,readme.pdf,screenshot.png
Output data type

Type

Available since






%{issue.attachments}




issue?.attachments?.map(a => a.filename)


Attachments are stored in lists. Documentation on how to work with lists can be found here.

You can access the whole attachment by issue?.attachments[0] which returns an objectissue?.attachments will return a list of objects.



Read



Returned valueA comma-separated list of file names of all files attached to the issue.
Output data type

Example outputfile1.txt,readme.pdf,screenshot.png