Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to set a list field without having to match the correct casing

Hi all, I'm using automation to process subjects on incoming emails and set multiple values on a ticket from it. Everything works great as long as the email is typed with the proper casing eg: "David Moreno".

"set": {"value": "{{issue.summary.replaceAll("(?i)^.*check([1-9])+\.([^\.]+)\.([^\.]+)\.([^\.]+)$","$4")}}" }

On my list fields, if I try to set a field, and the email comes like this "David moreno", it will fail because that is not considered a valid value for the list field.

First Question: is there any way to make the list (combo) fields case insensitive?, so I can set up the same value with any casing.

If not:

Second Question: I have been trying to capitalize the input coming in, but in smart values, when I split the incoming string by space, I haven't been able to apply a string function like capitalize() to the list of split strings, there is probably an easier way:

("(?i)^.*check([1-9])+\.([^\.]+)\.([^\.]+)\.([^\.]+)$","$4").split(" ")
}} {{.}}) {{/}}


I cannot change the field values (over 1300 in there).


Any help will be appreciated.




1 answer

1 accepted

0 votes
Answer accepted

Never mind, I figured it out:

Capitalize at the end of the array split, will apply it to all elements.

("(?i)^.*check([1-9])+\.([^\.]+)\.([^\.]+)\.([^\.]+)$","$4").split(" ").capitalize()
}} {{.}}) {{/}}

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

311 views 14 14
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you