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!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
issueKey
Key of the JIRA issue which attachments you to rename.
id

ID of the attachment you want to rename.

catId
Talk
idtalk-978
ID of the category where the attachment for renaming is stored.
name
A new name for the attachment.

Talk
idtalk-1239

isDoc

Indicates that the attachment you refer to is a document. It may accept two values:

  • true - use for renaming documents.
  • false - use for renaming generic attachments.

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:

Talk
idtalk-1240

ParameterDescription
ids
ID's of attachments you want to delete.

...

Code Block
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
Talk
idtalk-1241

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:

Talk
idtalk-1242

ParameterDescription
issueKey
Key of the JIRA issue which you want to see the list of categories with attachments.
ids
ID's of attachments and document revisions you want to archive.
cat
ID of the category where you want to place the archive with attachments.
name
Name of the archive. The ZIP extension will be automatically appended to the archive name.

...