Forums

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

Create scripted field that will count each subtasks' linked standard issue Defect tickets

Lara Arthur
Contributor
March 11, 2019

Atlassian Community,

For our baseline tickets that go through the SDLC process, we've set up subtasks to hand off certain tasks during each tickets lifecycle (subtasks auto-pops during specific workflow transitions). Two of those subtasks will be a Testing subtask per environment we deploy to (QA/UAT). Within the Testing workflow, I've set up a "Create Defect" button that creates and links a Standard issue type "Testing Defect". Each Testing Defect can have a "done" status of CLOSED = Works as Expected, DEFERRED = Work around exists, or COMPLETE = Actual defect found and fixed. I have a condition on the Testing subtask Workflow that can only be validated if all linked issues are in one of those statuses. 

I've been able to total up the number of defects with this script (found on the atlassian community) on Testing subtask with this scripted custom field:

Defect scripted field.JPG

It works great; I'm able to capture each # of "done" linked Defect issue types on the Testing subtask, but what I'd really like to do is add a scripted custom field to the baseline or main ticket where the Testing subtask resides to capture all Defects connected via multiple Testing subtasks.

Even better...I'l like to add 4 custom fields on the baseline that break down by the defect status. So something like:

Field 1= Total Closed Defects 

Field 2 = Total Complete Defects

Field 3 = Total Deferred Defects

Field 4 = Total Defects Captured (all status's included)

 

Is this at all possible? Thanks for any assistance you can provide!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events