atlassian-python-api 4.0.7


pip install atlassian-python-api

  Latest version

Released: Aug 21, 2025

Project Links

Meta
Author: Matt Harasymczuk
Maintainer: Gonchik Tsymzhitov

Classifiers

Development Status
  • 4 - Beta

Environment
  • Web Environment
  • Console

Intended Audience
  • Developers
  • Education
  • Information Technology
  • Science/Research
  • System Administrators

License
  • OSI Approved :: Apache Software License

Natural Language
  • English

Operating System
  • OS Independent
  • POSIX
  • Unix
  • MacOS :: MacOS X
  • Microsoft :: Windows

Programming Language
  • Python
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Utilities
  • Internet
  • Internet :: WWW/HTTP
  • Internet :: WWW/HTTP :: Dynamic Content
  • Software Development :: Libraries :: Python Modules
  • Software Development :: Libraries :: Application Frameworks

Build status PyPI version PyPI - Downloads License Codacy Badge Documentation Status Discord Chat

What is it?

The atlassian-python-api library provides a simple and convenient way to interact with Atlassian products (such as Jira Service management, Jira Software, Confluence, Bitbucket and apps Insight, X-Ray) using Python. It is based on the official REST APIs of these products, as well as additional private methods and protocols (such as xml+rpc and raw HTTP requests). This library can be used to automate tasks, integrate with other tools and systems, and build custom applications that interact with Atlassian products. It supports a wide range of Atlassian products, including Jira, Confluence, Bitbucket, StatusPage and others, and is compatible with both Atlassian Server and Cloud instances.

Overall, the atlassian-python-api is a useful tool for Python developers who want to work with Atlassian products. It is well-documented and actively maintained, and provides a convenient way to access the full range of functionality offered by the Atlassian REST APIs and made with love for Atlassian.

Documentation

Documentation

How to Install?

From PyPI

$ pip install atlassian-python-api

From Source

  • Git clone repository

  • Use pip install -r requirements.txt to install the required packages

  • or pipenv install && pipenv install --dev

Examples

More examples in examples/ directory.

Here’s a short example of how to create a Confluence page:

from atlassian import Confluence
import requests
# If you want to use a session, you can create it like this:
session =  requests.Session()
# and pass it to the Confluence constructor
confluence = Confluence(
    url='http://localhost:8090',
    username='admin',
    password='admin',
    session=session,)

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)

Please, note Confluence Cloud need to be used via token parameter. And here’s another example of how to get issues from Jira using JQL Query:

from atlassian import Jira
import requests

session = requests.Session()
jira = Jira(
    url='http://localhost:8080',
    username='admin',
    password='admin',
    session=session)  # Optional: use a session for persistent connections
JQL = 'project = DEMO AND status IN ("To Do", "In Progress") ORDER BY issuekey'
data = jira.jql(JQL)
print(data)

The traditional jql method is deprecated for Jira Cloud users, as Atlassian has transitioned to a nextPageToken-based pagination approach instead of startAt. Use enhanced_jql for improved performance and future compatibility.

from atlassian import Jira
import requests
session = requests.Session()
jira = Jira(
    url='https://your-jira-instance.atlassian.net',
    username='your-email@example.com',
    password='your-api-token',
    cloud=True,  # Ensure this is set to True for Jira Cloud
    session=session  # Optional: use a session for persistent connections
)
JQL = 'project = DEMO AND status IN ("To Do", "In Progress") ORDER BY issuekey'
# Fetch issues using the new enhanced_jql method
data = jira.enhanced_jql(JQL)
print(data)

Also, you can use the Bitbucket module e.g. for getting project list

from atlassian import Bitbucket
import requests

session= requests.Session()
bitbucket = Bitbucket(
        url='http://localhost:7990',
        username='admin',
        password='admin',
        session=session)

data = bitbucket.project_list()
print(data)

Now you can use the Jira Service Desk module. See docs. Example to get your requests:

from atlassian import ServiceDesk
import requests
sd = ServiceDesk(
        url='http://localhost:7990',
        username='admin',
        password='admin',
        session=requests.Session())

data = sd.get_my_customer_requests()
print(data)

Using Insight (CMDB Tool for Jira):

from atlassian import Insight
import requests

session = requests.Session()
insight = Insight(
        url='http://localhost:7990',
        username='admin',
        password='admin',
        session=session)

data = insight.get_object(88)
print(data)

Using Xray (Test Management tool for Jira):

from atlassian import Xray
import requests

session = requests.Session()
xr = Xray(
       url='http://localhost:7990',
        username='admin',
        password='admin',
        session=session)

data = xr.get_tests('TEST-001')
print(data)

Using Bamboo:

from atlassian import Bamboo
import requests

session = requests.Session()
bamboo = Bamboo(
        url='http://localhost:6990/bamboo/',
        token="<TOKEN>",
        session=session)

data = bamboo.get_elastic_configurations()
print(data)

If you want to see the 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)

How to contribute?

First of all, I am happy for any PR requests. Let’s fork and provide your changes :) See the Contribution Guidelines for this project for details on how to make changes to this library.

Credits

In addition to all the contributors we would like to thank these vendors:

4.0.7 Aug 21, 2025
4.0.6 Aug 20, 2025
4.0.5 Aug 20, 2025
4.0.4 May 12, 2025
4.0.3 Mar 31, 2025
4.0.2 Mar 31, 2025
4.0.1 Mar 30, 2025
4.0.0 Mar 25, 2025
3.41.21 Mar 17, 2025
3.41.19 Jan 23, 2025
3.41.18 Jan 10, 2025
3.41.16 Sep 16, 2024
3.41.15 Aug 30, 2024
3.41.14 Jun 14, 2024
3.41.13 May 21, 2024
3.41.12 May 21, 2024
3.41.11 Feb 27, 2024
3.41.10 Feb 09, 2024
3.41.9 Jan 21, 2024
3.41.8 Jan 17, 2024
3.41.7 Jan 17, 2024
3.41.6 Jan 16, 2024
3.41.5 Jan 16, 2024
3.41.4 Nov 28, 2023
3.41.3 Oct 19, 2023
3.41.2 Sep 07, 2023
3.41.1 Aug 27, 2023
3.41.0 Aug 16, 2023
3.40.1 Aug 13, 2023
3.40.0 Jul 28, 2023
3.39.0 Jun 17, 2023
3.38.0 May 28, 2023
3.37.0 May 16, 2023
3.36.0 Apr 04, 2023
3.35.0 Mar 15, 2023
3.34.0 Feb 24, 2023
3.33.0 Feb 17, 2023
3.32.2 Jan 04, 2023
3.32.1 Dec 06, 2022
3.32.0 Dec 04, 2022
3.31.1 Nov 23, 2022
3.31.0 Nov 12, 2022
3.28.1 Sep 17, 2022
3.28.0 Sep 03, 2022
3.27.0 Aug 22, 2022
3.26.0 Aug 10, 2022
3.25.0 May 25, 2022
3.24.0 May 24, 2022
3.23.0 May 13, 2022
3.22.0 Apr 28, 2022
3.21.0 Apr 18, 2022
3.20.1 Feb 15, 2022
3.20.0 Feb 14, 2022
3.19.0 Feb 07, 2022
3.18.1 Jan 25, 2022
3.18.0 Jan 09, 2022
3.17.0 Jan 02, 2022
3.15.0 Dec 18, 2021
3.14.1 Oct 02, 2021
3.14.0 Sep 19, 2021
3.13.2 Sep 06, 2021
3.13.1 Aug 31, 2021
3.13.0 Aug 04, 2021
3.12.1 Jul 09, 2021
3.12.0 Jul 07, 2021
3.11.0 Jun 12, 2021
3.10.0 May 10, 2021
3.9.1 May 05, 2021
3.9.0 May 03, 2021
3.8.0 Mar 15, 2021
3.7.1 Mar 13, 2021
3.7.0 Mar 13, 2021
3.6.0 Mar 08, 2021
3.5.3 Feb 25, 2021
3.5.2 Feb 15, 2021
3.5.1 Feb 10, 2021
3.5.0 Feb 09, 2021
3.4.1 Feb 01, 2021
3.4.0 Jan 29, 2021
3.3.1 Jan 28, 2021
3.3.0 Jan 27, 2021
3.2.0 Jan 25, 2021
3.1.1 Jan 25, 2021
3.1.0 Jan 23, 2021
3.0.0 Jan 21, 2021
2.7.0 Jan 20, 2021
2.6.0 Jan 14, 2021
2.5.0 Jan 08, 2021
2.4.4 Jan 05, 2021
2.4.3 Jan 03, 2021
2.4.2 Jan 03, 2021
2.4.1 Jan 03, 2021
2.4.0 Dec 31, 2020
2.3.0 Dec 26, 2020
2.2.0 Dec 17, 2020
2.1.2 Nov 28, 2020
2.1.1 Nov 19, 2020
2.1.0 Nov 17, 2020
2.0.1 Nov 05, 2020
1.17.7 Nov 02, 2020
1.17.6 Oct 11, 2020
1.17.5 Sep 15, 2020
1.17.4 Sep 13, 2020
1.17.3 Sep 10, 2020
1.17.2 Sep 01, 2020
1.17.1 Aug 31, 2020
1.17.0 Aug 28, 2020
1.16.1 Aug 19, 2020
1.16.0 Jun 16, 2020
1.15.9 Jun 03, 2020
1.15.8 Jun 02, 2020
1.15.7 May 08, 2020
1.15.6 Mar 05, 2020
1.15.5 Mar 02, 2020
1.15.4 Feb 28, 2020
1.15.3 Feb 12, 2020
1.15.2 Feb 05, 2020
1.15.1 Jan 27, 2020
1.15.0 Jan 22, 2020
1.14.9 Jan 14, 2020
1.14.8 Jan 08, 2020
1.14.7 Dec 22, 2019
1.14.6 Dec 05, 2019
1.14.5 Nov 28, 2019
1.14.4.1 Nov 25, 2019
1.14.3 Nov 10, 2019
1.14.2 Oct 28, 2019
1.13.24 Jul 24, 2019
1.13.23 Jul 18, 2019
1.13.22 Jul 12, 2019
1.13.21 Jul 09, 2019
1.13.20 Jul 05, 2019
1.13.19 Jul 01, 2019
1.13.18 Jun 28, 2019
1.13.17 Jun 28, 2019
1.13.16 Jun 26, 2019
1.13.15 Jun 21, 2019
1.13.14 Jun 17, 2019
1.13.13 Jun 15, 2019
1.13.12 Jun 14, 2019
1.13.11 Jun 11, 2019
1.13.10 Jun 10, 2019
1.13.9 Jun 07, 2019
1.13.8 Jun 04, 2019
1.13.7 May 30, 2019
1.13.6 May 24, 2019
1.13.5 May 23, 2019
1.13.4 May 22, 2019
1.13.4.dev0 May 22, 2019
1.13.3 May 22, 2019
1.13.1 May 21, 2019
1.13.0 May 21, 2019
1.12.20 May 20, 2019
1.12.19 May 17, 2019
1.12.18 May 15, 2019
1.12.17 May 14, 2019
1.12.16 May 13, 2019
1.12.15 May 10, 2019
1.12.14 May 09, 2019
1.12.13 May 07, 2019
1.12.12 May 06, 2019
1.12.11 May 06, 2019
1.12.10 May 04, 2019
1.12.9 May 01, 2019
1.12.8 Apr 24, 2019
1.12.7 Apr 23, 2019
1.12.6 Apr 23, 2019
1.12.5 Apr 12, 2019
1.12.4 Apr 11, 2019
1.12.3 Apr 09, 2019
1.12.2 Apr 01, 2019
1.12.1 Mar 29, 2019
1.12.0 Mar 14, 2019
1.11.19 Jan 21, 2019
1.11.18 Jan 20, 2019
1.11.17 Jan 07, 2019
1.11.16 Dec 22, 2018
1.11.15 Dec 18, 2018
1.11.14 Dec 04, 2018
1.11.13 Nov 27, 2018
1.11.12 Nov 19, 2018
1.11.11 Nov 09, 2018
1.11.10 Nov 03, 2018
1.11.9 Oct 31, 2018
1.11.8 Oct 31, 2018
1.11.7 Oct 30, 2018
1.11.6 Oct 29, 2018
1.11.5 Oct 26, 2018
1.11.4 Oct 24, 2018
1.11.3 Oct 22, 2018
1.11.2 Oct 18, 2018
1.11.1 Oct 17, 2018
1.11.0 Oct 04, 2018
1.10.2 Sep 17, 2018
1.10.1 Sep 17, 2018
1.10.0 Sep 11, 2018
1.9.6 Aug 31, 2018
1.9.5 Aug 29, 2018
1.9.4 Aug 22, 2018
1.9.3 Aug 20, 2018
1.9.2 Aug 17, 2018
1.9.1 Aug 08, 2018
1.9.0 Aug 08, 2018
1.8.2 Aug 02, 2018
1.8.1 Jul 31, 2018
1.8.0 Jul 27, 2018
1.7.5 Jul 26, 2018
1.7.4 Jul 25, 2018
1.7.3 Jul 22, 2018
1.7.2 Jul 21, 2018
1.7.1 Jul 10, 2018
1.6.0 May 24, 2018
1.5.1 May 22, 2018
1.5.0 May 22, 2018
1.4.0 May 11, 2018
1.3.0 May 03, 2018
1.2.3 Mar 31, 2018
1.2.2 Mar 31, 2018
1.2.1 Feb 23, 2018
1.2.0 Feb 14, 2018
1.0.2 Feb 02, 2018
1.0.0 Jan 30, 2018
0.13.2 Aug 19, 2015
0.13.1 Aug 18, 2015
0.13 Aug 17, 2015
0.12.5 Jul 28, 2015
0.12.4 Jul 28, 2015
0.12.3 Mar 31, 2015
0.12.2 Mar 31, 2015
0.12.0 Mar 31, 2015
0.11.5 Mar 27, 2015
Extras:
Dependencies:
deprecated
requests
oauthlib
requests_oauthlib
jmespath
beautifulsoup4
typing-extensions