Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-41075

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

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? 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'
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ajardim Artur J
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: