![]() ![]() ![]() ![]() Refresh token response = client.refresh_token('REFRESH_TOKEN') Set cloudid in the library t_cloud_id('CLOUD_ID') Get the cloudid for your site response = client.get_resource_list() Set access token in the library t_access_token('ACCESS_TOKEN') Url = thorization_url('REDIRECT_URI', scope_list, 'STATE')Įxchange authorization code for access token response = client.exchange_code('REDIRECT_URI', 'CODE') To do this, add the offline_access scope to the scope parameter of the authorization URL. Usage Client instantiation from jiracloud.client import ClientĬlient = Client('CLIENT_ID', 'CLIENT_SECRET') # Host must have trailing slashįor more information: Direct the user to the authorization URL to get an authorization codeĪ refresh token can be returned with the access token in your initial authorization flow. ![]() In addition to all the contributors we would like to thank these vendors:Ītlassian for developing such a powerful ecosystem.Jira-cloud-python is an API wrapper for Jira Software Cloud written in Python Installing pip install jira-cloud-python See the Contribution Guidelines for this project for details on how to make changes to this library. 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?įirst of all, I am happy for any PR requests. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |