Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
2
-
5
-
Description
Issue Summary
Projects that were previously archived in Server will show-up in Cloud as unarchived after a Server to Cloud migration.
Steps to Reproduce
- Archive a project in Jira Server/Data Center following these steps.
- Export your Jira Server to XML.
- Import your Jira Server XML into Jira Cloud.
- Search for any previously archived project.
Expected Results
Projects should remain archived.
Actual Results
Projects are showing as unarchived instead.
Workaround
- Generate a list of archived projects in Server by running this query:
select pe.property_key,p.* from propertyentry pe join project p on pe.entity_id=p.id where property_key = 'jira.archiving.projects';
- Leverage the script below to hit Jira Cloud API and re-archive affected spaces:
#!/bin/bash cat projects.csv | while read line; do projectkey=`echo $line | cut -d ',' -f1` echo "Archiving Project $groupname" curl -D- -u 'email@domain.com:API_TOKEN' -X https://address.atlassian.net/rest/api/3/project/$projectkey/archive done
Make sure to change site address, e-mail address and API token in the script above.
The projects.csv file should consist of project key(s) and project id(s) separated by a comma.