I would like to create a Confluence child wiki page under a parent page thru a python/java script

shashank June 21, 2017

I would like to create a Confluence  child wiki page under a parent page thru a python/java script 

 

I am able to create a page under a space by a below mentioned script but i want yo add this same page under some folder 

e.g. like this page is created under a folder

  1. Hand-Off Document

however i want to create a page under a folder

Hand-Off Document /Handoff Document Home / QAgent  Signature Set: Windows

how can i genrate page under this hireracy by a script

import xmlrpclib

CONFLUENCE_URL = "https://qwiki.intranet.qualys.com/rpc/xmlrpc"
CONFLUENCE_LOGIN = "XXX"
CONFLUENCE_PASSWORD = "XXx"

 

client = xmlrpclib.Server(CONFLUENCE_URL, verbose = 0)
auth_token = client.confluence2.login(CONFLUENCE_LOGIN, CONFLUENCE_PASSWORD)


newpagedata = {"title":"TEST_page_sha","content":"new content","space":"XXX"}
newpage = client.confluence1.storePage(auth_token, newpagedata);

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events