Count comma seperated value in custom field into another custom field.

Neeta Dubey May 22, 2024

Hi All,

I've a very simple request. 

In complaint ID box I'm writing ID's e.g (CN-12,CN-23,CN-55) and I need to count these comma seperated value and save it in Times reported field so as per this e.g Times reported should be equal to 3.

I'm attaching rule and error message. Please let me know if further info is required.

Customfield_14307 is "Complaint ID" field.

rule.pngerror count.pngticket.png

1 answer

1 accepted

2 votes
Answer accepted
Pavol Gočal
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.
May 22, 2024

Hello @Neeta Dubey

try this syntax: {{issue.customfield_xxxx.split(",").size}}

Then, in the edit issue field, use it like this:

 

split and count.png

Neeta Dubey May 23, 2024

This worked. Thank you so much!.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events