Working with attachments

The attachments feature is a useful feature in JIRA, and it sometimes helps to manage the attachments on an issue through the JIRA APIs. In this recipe, we will learn how to work with attachments using the JIRA API.

There are three major operations that can be done on attachments: Create, Read, and Delete. We will see each of them in this recipe.

Getting ready...

Make sure the attachments are enabled in your JIRA instance. You can do this from Administration|System | Advanced|Attachments, as mentioned at http://confluence.atlassian.com/display/JIRA/Configuring+File+Attachments .

How to do it...

All the operations on the attachments can be performed using the AttachmentManager API. The AttachmentManager can be retrieved either ...

Get JIRA Development Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.