How do I count the number of commas in a multi-line custom field?

I am running version 6.4.3.

I have a multi-line custom text field that contains entries separated by commas.   I want to be able to run a query that returns Issues sorted by the number of entries in that custom field.  Counting the number of commas in the field would do the trick, I think.

Any ideas?

1 answer

0 votes

I'd use a scripted field to count up the commas.  You will need some code to do this no matter what, there's nothing built-in that can do it.


Another solution is to export to Excel, and use an Excel formula to count the commas.  The drawback here is that I can only export 1000 rows at a time.  I have a little more than 2800 Issues that I need to look, so this isn't *too* painful.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,689 views 20 14
View question

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