You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have created a template that iterates over all issues and exports some relevant data in a document. I want it to show attachments as well. For I figured out how to display images but for other data types it obviously wouldn't work so I'd like to know if there is a way to get a hyperlink to an attachment?
This way if the attachment is not an image you could just use the hyperlink to get to the file.
I have found a solution myself.
For anyone interested:
#{for attachments}
@{title=${Attachments[n].Name}|href=${BaseURL}/rest/api/2/attachment/content/${Attachments[n].ID}}
#{end}
Will result in a hyperlinks that have the attachments name as a title and will lead to the download page where the download will start automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.