If you want to see the response in pretty print format JSON. get_elastic_configurations () print ( data ) Using Bamboo: from atlassian import Bamboo bamboo = Bamboo ( url = ', token = "" ) data = bamboo. Using Xray (Test Management tool for Jira): from atlassian import Xray xr = Xray ( url = ', username = 'admin', password = 'admin' ) data = xr. Using Insight (CMDB Tool for Jira): from atlassian import Insight insight = Insight ( url = ', username = 'admin', password = 'admin' ) data = insight. get_my_customer_requests () print ( data ) See docs.Įxample to get your requests: from atlassian import ServiceDesk sd = ServiceDesk ( url = ', username = 'admin', password = 'admin' ) data = sd. Now you can use the Jira Service Desk module. for getting project list from atlassian import Bitbucket bitbucket = Bitbucket ( url = ', username = 'admin', password = 'admin' ) data = bitbucket. jql ( JQL ) print ( data )Īlso, you can use the Bitbucket module e.g. Please, note Confluence Cloud need to be used via token parameter.Īnd here’s another example of how to get issues from Jira using JQL Query: from atlassian import Jira jira = Jira ( url = ', username = 'admin', password = 'admin' ) JQL = 'project = DEMO AND status IN ("To Do", "In Progress") ORDER BY issuekey' data = jira. You can use HTML tags!' ) print ( status ) create_page ( space = 'DEMO', title = 'This is the title', body = 'This is the body. Here’s a short example of how to create a Confluence page: from atlassian import Confluence confluence = Confluence ( url = ', username = 'admin', password = 'admin' ) status = confluence. Use pip install -r requirements.txt to install the required packages Documentationįrom PyPI $ pip install atlassian-python-api It is well-documented and actively maintained, and provides a convenient way to access the full range ofįunctionality offered by the Atlassian REST APIs. Overall, the atlassian-python-api is a useful tool for Python developers who want to work with Atlassian products. It supports a wide range of Atlassian products, including Jira, Confluence, Bitbucket, StatusPage and others,Īnd is compatible with both Atlassian Server and Cloud instances. This library can be used to automate tasks, integrate with other tools and systems,Īnd build custom applications that interact with Atlassian products. It is based on the official REST APIs of these products, as well as additional private methods and protocols (such as Jira Service management, Jira Software, Confluence, Bitbucket and apps Insight, X-Ray) using Python. The atlassian-python-api library provides a simple and convenient way to interact with Atlassian products
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |