![]() This will give us the possibility to use the Jira Query Language (JQL), just like we can use it for searching issues in Jira itself. We can use the Search for issues using JQL request for that. Therefore, we first need to retrieve the issues which contain work logs within the specified time period. This request requires an issue Id or key. The report must be sorted by user, day and issueįor retrieving the work logs of a Jira issue, we need to call the Get issue worklogs request.The report must contain all the logged worked per user within a specified time period for a specific Jira project.The requirements for the Jira time report we want to create, are the following: This way, we are independent of a third party library. Note that it is also possible to use the Python Jira library, but we preferred to talk to the Jira API directly. Before writing a script which should support both versions, check whether the API call is identical and use the Cloud documentation if possible. It contains less clear information than the Cloud version. So, all of the documentation is available, the main challenge is to find out which requests you need for your application.īeware that there is also documentation available for the Jira Server API. The expected response of the request is also provided. The API is well documented and contains examples how to call the API with curl, Node.js, Java, Python and PHP. Now, let’s take a look at the Jira Rest API documentation: Go to the Security tab and create the API token. Click on your avatar in the left bottom corner and choose ‘Account settings’. Since we are using Jira Cloud, we need to create an API token first. We can also use the Jira API to do so, but that is maybe something for another post. It took us less than 5 minutes to get started with Jira Cloud.Ĭreate some user stories with sub-tasks, start a sprint, and log some work to the sub-tasks. The last thing to do is to create a Scrum board and then we are all set to go. In the next step, you need to create an account and choose a site name. Go to the Jira website and navigate to the bottom of the page. You might also be interested in: Is JIRA a Counterproductive Project Management Software In Today’s Market? Create a Jira Cloud Accountįirst things first, we will need a running instance of Jira in order to execute some integration tests. We are using Python 3.7.5 and version 2 of the Jira API. For example, you can create an interface between your Service Management system and Jira for passing tickets from 1st line support (working with the Service Management system) to 2nd line support (working with Jira).Įnough for this introduction, let’s start using the API! We will develop a Python script that will generate a user-based time report for a specific Jira project. ![]() It is quite an extended API and gives you the opportunity to write your own scripts extending the Jira functionality. However, both versions also support an API. The number of add-ons and whether you want to be responsible for maintenance yourself can be decisive factors on which version to use. ![]() The number of add-ons for Jira Cloud is very limited and aims at smaller teams, Jira Server has many more add-ons and aims at larger organizations. Jira is available in two versions, a Cloud version and a Server (on-premise) version. Some of them are free, other ones need to be purchased. Add-ons can be installed for extending the functionality of Jira. IntroductionĪ lot of companies are using Jira nowadays in order to support their Scrum or Kanban process. Besides that, it is a good excuse to do some Python coding. We will explain how you can use the Jira API in order to generate a user-based time report. In this post, we will explore the Jira Rest API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |