forked from atlassian-api/atlassian-python-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added confluence whiteboard endpoints
- Loading branch information
gkowalc
committed
Apr 21, 2024
1 parent
8233f84
commit fd3c1b6
Showing
3 changed files
with
47 additions
and
12 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") |