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:
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!
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.