Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Neeta Dubey
Contributor
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.png error count.png ticket.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
Contributor
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
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events