include the "promoted" blueprint settings in a space XML export

XMLWordPrintable

    • 2

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      Summary

      • When exporting space(s) the "promoted" blueprints settings are lost, and have to mannualy promote them again in the imported space.

      Steps to Reproduce

      • Promote a blueprint (bundled) in a space.
      • Export the space as XML
      • Import this space

      Expected Results

      • The promoted blueprint setting remains.

      Actual Results

      • Missing the promoted blueprint setting.

      Workaround

      • Promote it again mannually in the imported space.
      • Below you can do it through REST API.
      1. We strongly advise to definitely test these on a test/staging instance before applying them to actual prod one.
      2. The user credential to be used must have admin permission on that space.
      3. Providing username/password as plain text as the instruction is not recommended. You can try something like this to hide the actual password from being displayed in console:
        https://coderwall.com/p/dsfmwa/securely-use-basic-auth-with-curl
      4. template_id and blueprint_id being used must exist in the destination instance.

      Template

      curl -X PUT -u <username>:<password> 'http://<hostname>:<port>/<context_path>/rest/create-dialog/1.0/promotion/promote-template/<template_id>?spaceKey=<space_key>'
      

      e.g.

      curl -X PUT -u admin:admin 'http://localhost:1990/confluence/rest/create-dialog/1.0/promotion/promote-template/917505?spaceKey=BT'
      

      Blueprint

      curl -X PUT -u <username>:<password> 'http://<hostname>:<port>/<context_path>/rest/create-dialog/1.0/promotion/promote-blueprint/<blueprint_id>?spaceKey=<space_key>'
      

      e.g.

      curl -X PUT -u admin:admin 'http://localhost:1990/confluence/rest/create-dialog/1.0/promotion/promote-blueprint/b47ea66c-35c2-4fd5-b595-06a894449e9d?spaceKey=BT'
      

              Assignee:
              Unassigned
              Reporter:
              Artur J (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: