GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rajdor/pythonConfluenceExamples: Examples of using atlassian-python-api

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
config.json
config.json
 
 
createPage.py
createPage.py
 
 
requirements.txt
requirements.txt
 
 
updateChart.png
updateChart.png
 
 
updateChart.py
updateChart.py
 
 
updatePage.py
updatePage.py
 
 

Repository files navigation

atlassian-python-api Examples

Things to know

How to get page id

  • Click the page ellipsis and select Page Information
  • The page id is found in the web browser url
i.e. http://192.168.1.224:8090/pages/viewinfo.action?pageId=10256402

Hot to get macros and other confluence page source

  • Option 1, use the REST API and your browser with the page id,
i.e. http://192.168.1.224:8090/rest/api/content/10256402?expand=body.storage 
     or (depending on your server configuration) 
     http://192.168.1.224:8090/confluence/rest/api/content/10256402?expand=body.storage 
  • Option 2, copy and modify the included script updatePage.py to print the returned values from the following snippet
contents=confluence.get_page_by_id(pageID, expand="body.storage,version", status="current")

Example config

Using config.json

{
"confluence":"http://192.168.1.224:8090"
,"user":"username"
,"password":"password"
,"space":"HOME"
,"page":"My Test Page"
}

createPage.py

  • Verify Space exists
  • Get Page ID by Space and Page Title
  • Create Page in Space with Page Title and return Page ID

updatePage.py

  • Get Page ID by Space and Page Title
  • Get Page contents and properties by Page ID
  • Update page body and title by Page ID

updateChart.py

  • Get Page ID by Space and Page Title
  • Generate random data for 'Internet download speeds'
  • Use confluence chart macro and html table for page body
  • Update page body and title by Page ID

example chart output

About

Examples of using atlassian-python-api

Topics

apiatlassianconfluencepython

Resources

Readme
Activity

Stars

8 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.