Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-72589

Jira cloud backup when restored results in the user directory operations removed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 8.16.1, 8.17.0
    • None

    Description

      Issue Summary

      Jira cloud backup when restored results in the user directory operations removed

      Attached some of the backup used

      Steps to Reproduce

      1. Create a test Jira cloud instance (https://nayka.atlassian.net/jira/your-work)
      2. Create a backup of Jira cloud instance using (setting -> system -. Backup manager -> create backup for server)
      3. use the backup on a Jira server / Datacenter to restore. https://confluence.atlassian.com/adminjiraserver/migrating-from-jira-cloud-to-server-applications-938846963.html
      4. Login to the Jira server/ Datacenter with user sysadmin/sysadmin
      5. Observe the "Jira internal directory" operations are disabled

      Expected Results

      1. At the end of restoration of Jira cloud backup the "Jira internal directory" operations should not be disabled

      Actual Results

      Workaround

      Use either one of the methods below:
      Method 1
      Go to '⚙ > User Management > User Directories > Jira Internal Directory > Edit' and hit the Save and Test button.
      This will trigger a backend operation on the database, recreating all the operations in the table

      Method 2

      1. Shutdown Jira
      2. Run the following sql query:
        insert into cwd_directory_operation 
        values 
          (1, 'CREATE_GROUP'), 
          (1, 'CREATE_ROLE'), 
          (1, 'CREATE_USER'), 
          (1, 'DELETE_GROUP'), 
          (1, 'DELETE_ROLE'), 
          (1, 'DELETE_USER'), 
          (1, 'UPDATE_GROUP'), 
          (1, 'UPDATE_GROUP_ATTRIBUTE'), 
          (1, 'UPDATE_ROLE'), 
          (1, 'UPDATE_ROLE_ATTRIBUTE'), 
          (1, 'UPDATE_USER'), 
          (1, 'UPDATE_USER_ATTRIBUTE');
        
      3. Restart Jira

      Attachments

        1. a4j_jira_jsm.zip
          118 kB
        2. jira-export.zip
          69 kB
        3. licensetrial_jsm.zip
          161 kB
        4. Screen Shot 2021-07-08 at 12.43.32 pm.png
          Screen Shot 2021-07-08 at 12.43.32 pm.png
          67 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sshankar@atlassian.com Shashi Shankar (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: