Field code
issue?.attachments[0]?.id

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 valueThe ID of the first attachment
Output data type

NUMBER

Example output10042

If you still have questions, feel free to refer to our support team.