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
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

392 views 6 0
Join discussion

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