Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to count number of defects for specific change request?

Maulin Rathod
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 13, 2018

We want to find out number of defects raised against particular change request. How can we do it?

1 answer

2 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2018

Hello,

You can create a new custom field, which would show you this information. You can use the Power Custom Feilds add-on. It is a free add-on.

https://marketplace.atlassian.com/apps/1210749/power-custom-fields

Suppose, you link all bugs for a request with the Bug link type. The code for your custom field would look like this:

 return linkedIssues(key,"Bug").size();
Maulin Rathod
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2018

Thanks for Reply....In our scenario we have change request and QA team is creating subtasks (issueType = Defect) of change request. we want to calculate number of defect raised for that specific change request. Do we need to manually link subtask (issueType = Defect) with parent Change Request ? I guess there must be some automatic link between Change Request and its subtask (issueType = Defect). 

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 15, 2018

If you create a subtask, then you do not need to add more links. Your script would look like this:

return subtasks(key,"Bug").size();

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events