Hi all,
my request is about the ticket type Epic.
When stories are linked to an epic, they are listed as "Issues in epic".
I would like to display the total number of "Issues in epic" as a number in the epic.
Example: If my list "issues in epic" contains 15 items, I want to show this value as a number in a custom field "Total number of tickets".
I have created a scripted field for this with scriptrunner and would be happy if you could support me with the matching script.
To get all related issues I'm using this script below. When i use a textfield-template, it correctly gives me the linked keys. Now I need a function that sums the number of keys so I can display them with a number-field-template
Thanks,
Alexander
Hi @Alexander B_ and welcome to the community,
If your result is a list or array, why you don't use the .size to get the number of issues in that list?
thank you! That helped. Find my modified script below.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice! Good to know that!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was looking for this solution as well. Thank you for posting this!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.