Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

/rest/api/2/issue/archive and /rest/api/2/issue/{issueIdOrKey}/archive

Andreas Lorz
Contributor
March 21, 2021

Hi Community,

found the two endpoints

  • POST /rest/api/2/issue/archive and
  • PUT /rest/api/2/issue/{issueIdOrKey}/archive

by chance (https://docs.atlassian.com/software/jira/docs/api/REST/8.5.1/).

The doc says: "Archives a list of issues.", which is not very much.

Can anybody explain me whats the deal with this two?

Didn't know there is an archiving option. Don't know it from the GUI and don't know what happens when do over REST. Didn't tested it on a staging env. yet. Can somebody explain.

We running a server instance.

Thanks in advance.

 

1 answer

1 accepted

2 votes
Answer accepted
Elifcan Cakmak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2021
Andreas Lorz
Contributor
March 22, 2021

Hi Elifcan,

thanks. Well that explains it. Only available in Data Center.

And just tested it. You get the response:

{
"errorMessages": [
"To archive issues, you need to enable this feature, and have a license for Jira Data Center."
],
"errors": {}
}

 Thanks for your response.

Suggest an answer

Log in or Sign up to answer