JIRA and Python — Make life easier

Anupkumar Kasi
2 min readMay 27, 2021

--

An article on DIY utilities that can make life easier at workplace

JIRA Python API has given a lot of room to develop customized solutions for our day-to-day needs, have listed a few of them below. Feel free to add more ideas/ best practices in the comments section

As always, feedback is welcome at anupkkumarfb@gmail.com…

Source: https://avleonov.com/wp-content/uploads/2017/11/labels_jira_python.png

Here we go…

Duplicate defects

Duplicate defects not only affect quality, but also the efficiency and time of the team. QA raise defect that could be duplicate of another existing one. Dev/ defect manager has to spend effort to check on this. A DIY defect finder tool built on Python can help here.

Defects to Testcase Mapping

Its a good practice for mapping test cases to defects. But in adhoc scenarios, we might not find a direct test case. In such cases, NLP based test case mapping can help.

Update Defects

Update defects, add comment, change status etc programmatically based on conditions or triggers

RCA

Determining RCA based on past data for a newly raised defect would save lot of time. Machine Learning based RCA analyzer will come handy here

Pending defects

Pending retest and pending fixes are one of the key items in QA. Schedule a script to fetch these and work with QA/ Dev for next steps.

Aging

Aging is a vital parameter for determining the age of a defect. This will be helpful for stakeholder reporting. A scheduled script to calculate aging of each defect will help in sharing the highlights

Reporting

Python based reporting to share defect, test execution, test set data etc through your outlook will be a handy tool. The script can be scheduled at regular interval to fetch the daily/ weekly/ monthly reporting

Rejected Defects

Defects that move into Cancelled status undermine QA efficiency. An ML solution to validate the rejected defects and provide recommendations would help here.

Integration with MS Teams/ Slack

Passing key information over Slack or Teams would be more helpful. Use the Python API accordingly

Key Python libraries

  • jira
  • pandas
  • numpy
  • win32com.client
  • plotly
  • re, os, datetime, time, sys
  • unipath

--

--

Anupkumar Kasi
Anupkumar Kasi

Written by Anupkumar Kasi

A project manager by profession, interested to learn machine learning. Still a kid in ML field, exploring different ways to learn and execute.

Responses (1)