Is it possible to have a custom field in JIRA that returns "Number of components" assigned to an issue?

Deleted user October 12, 2016

I am wondering if it is possible to have a custom field that can return number of components assigned to an issue. 

I can see when I create a custom field I can choose "Number of attachments" and "Number of comments".

 

1 answer

0 votes
Dave Bosman
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.
October 12, 2016

Hi Gigja

I believe this can be achieved with a scripted field with plugin https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/cloud/overview

I never tried to do it so i'm not sure if it will work but there is a specialist from the creators of the plugin active on Atlassian answers.

 

@Nic Brough [Adaptavist] Maybe you can confirm this works? 

 

Regards

Dave

 

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2016

That's exactly how I would do it.

A scripted field that just says

return issue.getComponentObjects().size()

should actually do the whole job!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events