Details
-
Suggestion
-
Resolution: Won't Do
-
None
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.
- We strongly advise to definitely test these on a test/staging instance before applying them to actual prod one.
- The user credential to be used must have admin permission on that space.
- 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 - 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
- relates to
-
CONFCLOUD-41075 include the "promoted" blueprint settings in a space XML export
- Closed