Count the number of subtasks on an issue

JT
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.
June 27, 2013

We have a project that needs to track the number of subtasks on an issue by subtask type. They would like to see 'counter' fields on the issues that increase everytime a new subtask is added to the issue.

Issue A

Subtask B Counter Subtask C Counter

Subtask type B is added to Issue A - Subtask B Counter increases to 1

Subtask type C is added to Issue A - Subtask C Counter increases to 1

Subtask type A is added to Issue A - Subtask B Counter increases to 2

Any idea on how to get these counters

1 - on create

2 - by subtask type

We are JIRA v6.0.2

1 answer

1 accepted

0 votes
Answer accepted
Tom Moors
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.
June 30, 2013

Hi Jeanne,

You can achieve this by using the great Script Runner plugin by Jamie Echlin (https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner).

This plugin comes with the concept of scripted fields - fields that will dynamically get a value based on the scripting code you provide - more information can be found over here: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+Fields

Kind regards,

Tom

Suggest an answer

Log in or Sign up to answer