In this post, I would like to show how I have implemented automated status reporting from JIRA.
In my organization, I help with automation testing for multiple projects. One of the projects, they use JIRA for defect tracking. I was approached to implement something similar to this (which i had already done for HP ALM) for a different project.
The goal was to send 2 different emails daily- 1 is for defect status and the other is for test execution status.
JIRA API:
JIRA has exposed most of its functionalities via REST API. So you can create/edit/get issues programmatically.
Please check this link to get an idea of JIRA REST API.
Design/Framework:
The design would be similar to the one I had done for HP ALM. Because all the libraries were reused. I created one library for JIRA which will replace the one for ALM. Everything else would be simply reused.
Properties File:
This is a sample properties file which is read by the executable to create the status emails.
Sample EMail:
The automated email sent is similar to this
Summary:
By creating a simple utility, we saved a lot of time in status reporting which gives more accurate defect status & test execution status. It also has been designed to be used for any project by updating a config file.