Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Scriptrunner - JIRA REST Endpoint to download attchments.

Currently, there are no rest APIs available to download a Jira attachment. Can somebody explain me how to create a custom rest endpoint to download an attachment by calling the rest call and giving the parameters issue id and attachment id?

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 28, 2023

Welcome to the Atlassian Community!

You can use the "get content" REST call to get the attachment - see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-group-issue-attachments but you do need to do a bit of messing around to get the file name and work out what the attachment id is (you'll need to do that messing around in a REST endpoint too)

TAGS
AUG Leaders

Atlassian Community Events