Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-81072

Archived projects are unarchived when migrating from Server to Cloud

    XMLWordPrintable

Details

    • 2
    • 5
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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

      1. Archive a project in Jira Server/Data Center following these steps.
      2. Export your Jira Server to XML.
      3. Import your Jira Server XML into Jira Cloud.
      4. Search for any previously archived project.

      Expected Results

      Projects should remain archived.

      Actual Results

      Projects are showing as unarchived instead.

      Workaround

      1. 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';
        
      2. 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mhorlle Marcelo Horlle
              Votes:
              12 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated: