Count the number of subtasks on an issue

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

This widget could not be displayed.

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
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

61 views 2 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you