Documentation
Examples
For everyday normal use, just install package using pip
pip install atlassian-python-api
Here’s a short example how to create a Confluence page:
from atlassian import Confluence
confluence = Confluence(
url='http://localhost:8090',
username='admin',
password='admin')
status = confluence.create_page(
space='DEMO',
title='This is the title',
body='This is the body. You can use <strong>HTML tags</strong>!')
print(status)
And here’s another example how to get issues from Jira using JQL Query:
from atlassian import Jira
jira = Jira(
url='http://localhost:8080',
username='admin',
password='admin')
JQL = 'project = DEMO AND status NOT IN (Closed, Resolved) ORDER BY issuekey'
data = jira.jql(JQL)
print(data)
Also, you can use the Bitbucket module e.g. for get project list
from atlassian import Bitbucket
bitbucket = Bitbucket(
url='http://localhost:7990',
username='admin',
password='admin')
data = bitbucket.project_list()
print(data)
Now you can use Jira Service Desk module. See docs. Example to get your requests:
from atlassian import ServiceDesk
sd = ServiceDesk(
url='http://localhost:7990',
username='admin',
password='admin')
my_requests = sd.get_my_customer_requests()
print(my_requests)
Please make sure, you’ve checked examples/ directory on how to build scripts using the API. If you want to see response in pretty print format json. Feel free for use construction like:
from pprint import pprint
# you code here
# and then print using pprint(result) instead of print(result)
pprint(response)
Development and Deployment (For contributors)
See the Contribution guidelines for this project for details on how to make changes to this library.
Release files for atlassian-python-api-cti 1.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atlassian-python-api-cti-1.12.0.tar.gz | 35.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atlassian_python_api_cti-1.12.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.3 kB
Release files / atlassian-python-api-cti-1.12.0.tar.gz
| Download URL | atlassian-python-api-cti-1.12.0.tar.gz |
|---|---|
| Size | 35.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1aeba5365e906d32cec4a072dcd86225a11211e18e664e30d12923bd7f1d1a04
|
|
BLAKE2b-256 checksum How to use checksums |
7ae19b174d9c13a42b9c7b5ba04e6fedc6ad610c9f770161c8169e035eb8377d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.7.2 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.8
|
Release files / atlassian_python_api_cti-1.12.0-py3-none-any.whl
| Download URL | atlassian_python_api_cti-1.12.0-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7d1a4cf9ca2675fde0f1a162d9bc670755a8fe44b51602ee1448255cde51144
|
|
BLAKE2b-256 checksum How to use checksums |
dc5ef67f864df6817d8f898ed98ce725f8185ba7d7016ab659b584fa2cd6072c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.7.2 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.8
|