AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Jira client python jira cloud3/25/2023 ![]() ![]() Remember that we told it which project to search when we defined jira_project earlier. Issues_in_projis a JQL query that returns all of the issues in a given project. Notice that it takes three Jira variables that we already defined, plus the log. After that, comes the definition for jc, which is the actual connection to the Jira server. ![]() We next define logging because it’s a requirement of the connect_jira method. #Define the attribtes of the Jira connection As well, we’re defining which Jira project to aim for with the jira_project variable: jira_server = "" Instead we define the username, password, and Jira server to which we wish to connect. Nothing within the function needs to be adjusted. Next comes the Jira connection, which as noted is not my work. #Define the client, with which we will connect to AWS Remember to change your region to whichever region is appropriate for you, in addition to filling in the credentials required to connect to your AWS instance: client = boto3.client( You’ll likely need to a PIP install of Jira and boto3, if you’ve not used them before.Īfter the imports we’re defining client, which we use to interact with the AWS API. We need the Jira library, logging, and the AWS library (boto3). I have linked to the Stack Overflow page where I found it, in the script comments. The authentication method below is not mine. If you’re using Jira Cloud the approach would be different, but I’m planning to do a post about that in the near future. The script assumes you’re working with Jira Server or Datacenter.If your organization uses Single Sign On, this script would need to be amended. The script assumes you can authenticate against Jira with Basic Web Authentication.There are two caveats when it comes to using this script: Therefor, it is possible to marry the two, and use Python to assess the sentiment of Jira issues. It’s possible to connect to a Jira instance using Python, and it’s possible to connect to AWS Comprehend using Python. ![]()
0 Comments
Read More
Leave a Reply. |