Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

shashank
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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);

1 answer

0 votes
Mirek
Community Champion
October 28, 2024

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events