The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Archived project information via API ?

Renni Verho
Contributor
August 25, 2021

Hi, 

 

we have Jira instance where set of projects are archived. 

Now plan is to merge 2 instances to one and would like to prepare for possible conflicts (eg. import project using same keys as archived project)

Tried to list all projects from target instance, but found out that archived are not in json provided thru rest api :  /rest/api/latest/project. 

Is there way to list archived projects (and other information from archived projects) or is unarchive and reindexing only way to start safe merge ? 

 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Mohamed Benziane
Community Champion
August 25, 2021

Hi,

You can use this API to get all project even archived project

https://docs.atlassian.com/software/jira/docs/api/REST/8.18.2/#project-getAllProjects

You just need to pass a parameter

includeArchived boolean  whether to include archived projects in response, default: false

Renni Verho
Contributor
August 26, 2021

Thanks!

That were simple, just managed missed that in API doc. 

0 votes
Renni Verho
Contributor
August 25, 2021