Hello Sergio,
Thank you for your request and for your interest in our plugin.
It is possible to set the parent space via HTTP Post remotely.
Use the URL: http://<Confluence_URL>/admin/subspace/changeparentspace.action
Method: POST
Request Header: Content-Type:application/x-www-form-urlencoded
Body: parentKey=<Key_of_the_parent_space>&key=<Key_of_the_space>
To set the parent space is also possible via database but we do not recommend to change any data in the database. It is very dangerous.
Do the following steps to set the parent space:
SELECT spacedescid FROM spaces WHERE spacekey='<SPACE_KEY>';
Set the parent space key in the space description of the desired space:
INSERT INTO os_propertyentry (entity_name, entity_id, entity_key, key_type, boolean_val, double_val, string_val, text_val, long_val, int_val, date_val) VALUES ('confluence_ContentEntityObject',<SPACE_DESCRIPTION_KEY>,'metadatakeys',6,FALSE,0,NULL,'Parent',0,0,NULL); INSERT INTO os_propertyentry (entity_name, entity_id, entity_key, key_type, boolean_val, double_val, string_val, text_val, long_val, int_val, date_val) VALUES ('confluence_ContentEntityObject',<SPACE_DESCRIPTION_KEY>,'metadata.Parent',6,FALSE,0,NULL,'<PARENT_SPACE_KEY>',0,0,NULL);
via "Confluence Admin" => "ADMINISTRATION" => "Cache Statistics" => "Flush All"
Please test these steps first on a test environment.
I hope this helps to clarify your question. If not, please do not hesitate to contact me again.
Greetings,
Bill Martin
Communardo Support
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.