Tell us how you use Jira Service Desk and get a Starbucks gift card for this! Share your experience to help us design a new solution for efficient communication with customers!
|Key of the JIRA issue which attachments you to rename.|
ID of the attachment you want to rename.
|ID of the category where the attachment for renaming is stored.|
|A new name for the attachment.|
Indicates that the attachment you refer to is a document. It may accept two values:
This parameter is optional and you can omit it if you are performing a request for generic attachments. For the details on documents with revisions, please see this.
Here you can see an example of the request:
In this request you need to enter the correct value for the following parameter:
|ID's of attachments you want to delete.|
curl -D- -u admin:admin --request POST "https://yourjira.com/rest/attach-cat/1.0/attachments/remove" --data "ids=161105&ids=161107"
No response is returned.
Deleting document revisions
You can delete one or multiple document revisions from the issue.
In this request you need to specify the correct values for the following parameters:
|Key of the JIRA issue which you want to see the list of categories with attachments.|
|ID's of attachments and document revisions you want to archive.|
|ID of the category where you want to place the archive with attachments.|
|Name of the archive. The ZIP extension will be automatically appended to the archive name.|