atlassian-python-api | Atlassian Python REST API wrapper | REST library
kandi X-RAY | atlassian-python-api Summary
kandi X-RAY | atlassian-python-api Summary
Atlassian Python REST API wrapper
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Update a page
- Make a GET request
- Get a single page by id
- Create the body
- Set branch permissions
- URL for branch permissions
- Create a pull request
- Construct the URL for a resource
- Returns the URL for pull requests
- Find users by user string
- Generate an HTML table from a dictionary
- Returns the results of a job
- Create a branch
- Create or update a page
- Create or update a template
- Get a list of commits for a project
- Get all permissions for the project
- Create an object navigation list
- Download a repository archive
- Attach a file to the confluence
- Gets comments for the given content
- Get the content of a space
- Get a list of tickets
- Get all pages from a Space
- Gets a list of project versions for the given key
- Performs an IQL query
atlassian-python-api Key Features
atlassian-python-api Examples and Code Snippets
startdate = "start date: 2021-09-20T07:16:08.000+0000"
enddate = "end date: 2021-09-21"
justStartDatetimeString = startdate.split(" ")[-1]
justEndDatetimeString = enddate.split(" ")[-1]
"20
jira_instance.issue_add_comment(test_data['key'], 'This is the comment')
jira_instance.update_issue_field(test_data['key'], fields={"assignee": "####"})
jira_instance.issue.update(assignee={'accountId': '5b10ac8d82e05b22cc7d4ef5'})
confluence_data = yaml.safe_dump(confluence_data['associations'], allow_unicode=True)
new_confluence_data = ""
confluence_data_lines = confluence_data.splitlines()
for line in confluence_data_lines:
line = "
Community Discussions
Trending Discussions on atlassian-python-api
QUESTION
I am trying to use the Confluence API "get_all_pages_from_space" to retrieve all pages (400 or so in total) in a Confluence space.
...ANSWER
Answered 2021-Oct-05 at 06:58A little bit late, but hopefully still might help:
QUESTION
I am trying to connect to a Confluence page using the python wrapper on the API (as I am not familiar with any of this) but I keep getting the following error:
...ANSWER
Answered 2021-Mar-25 at 16:38Your code looks ok. Authenticating to Confluence using Basic Auth should work without generating an API token, afaik.
The 401
status definitely suggests a problem with the authentication though. The obvious reason for this would be of course wrong credentials, but I assume that you have double checked that the credentials work when interactively logging into confluence with a browser.
To get a better sense of the error, you can import logging
to debug your requests and response:
QUESTION
I am using the atlassian-python-api to update a page as described in the documentation:
...ANSWER
Answered 2021-Mar-25 at 09:00This is actually directly possible with update_page()
, though you are correct, it is not documented in the method's documentation.
I found in the source code that the method update_page()
takes an optional argument version_comment
. This is the comment that you want to set.
Extending your example:
QUESTION
I'm trying to write a Python script based on the atlassian-python-api module which will copy the spaces from one space and the create them in another space hosted in a different server using the following commands:
...ANSWER
Answered 2020-Aug-12 at 12:33As per my understanding, there’s no proper way to do this programmatically as of now using Python.
The only ways we can achieve this are as follows:
- Copy Paste the pages manually one by one from edit mode.
- XML Export & Import the space by putting the XML file in the JIRA server.
- Using Bobswift CLI tool which supports this functionality.
QUESTION
With the atlassian-python-api 1.15.1 module and python 3.6
how can I to download a file attached to a Confluence page ?
The page actions section of the API documentation mentions an API get_attachments_from_content
, with which I can successfully obtain a list of all page attachments, with their metadata. There's an example at the end of this question of what I can obtain by printing one of the items in the results
key.
What I already tried is to use the wget
module to downloaad the attachment:
ANSWER
Answered 2020-Feb-03 at 12:52While I didn't find a way to download the files directly with the atlassian-python-api
module, I managed to do it with the requests
module, thanks to this answer. Here's the code used to download all attachments visible in the page:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install atlassian-python-api
You can use atlassian-python-api like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page