-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Confluence] added new endpoints for confluence whiteboards + docs + …
…example (#1377) * fixing minor issue in scrap_regex_from_issue method * new Confluence method scrap_regex_from_page+ docs + examples * added method get_attachments_ids_from_page to jira.py * added method download_attachments_from_issue * refactoring download_all_attachments_from_page method * finished download_attachments_from_issue * added two new methods: download_attachments.from_issue and get_attachments_ids_from_issue * added fix to the infinitive loop * adding reursion depth condition * fixed reursion depth condition * added update4d jira.py with new method + docs +example * added update4d jira.py with new method + docs +exampl * fix flake8 issue * hotfix get_issue_tree_recursive * added expand to get_issue method, added new method * get_issue_status_changelog method * included param expand in get_issue method decription * WIP PR changes - #1357 * improving index.rst docs #1365 * added whiteboard methods * added confluence whiteboard endpoints --------- Co-authored-by: gkowalc <> Co-authored-by: Greg <gkowalc>
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from atlassian import Confluence | ||
|
||
confluence = Confluence( | ||
url="<instance_url>", | ||
username="<atlassian_username>", | ||
password="api_key", | ||
) | ||
""" | ||
This is example on how to use confluence whiteboard endponds | ||
Currently only available on confluence cloud | ||
""" | ||
# create whiteboard. First parameter is a spaceID (not spacekey!), | ||
# second param is a name of whiteboard (optional), third one is a parent pageid (optional) | ||
confluence.create_whiteboard("42342", "My whiteboard", "545463") | ||
|
||
# To delete of get whiteboard, use whiteboard id | ||
# https://<instance_name>/wiki/spaces/<space_key>/whiteboard/<whiteboard_id> | ||
# Deleting a whiteboard moves the whiteboard to the trash, where it can be restored later | ||
confluence.delete_whiteboard("42342") | ||
confluence.get_whiteboard("42342") |