Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

UserMacro - String to UpperCase

RM@DGI
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 28, 2014

Is there a simple way (inside a user macro) to convert a string to uppercase ?

Already tried #set ($myString = $myString.upperCase()) etc. without any luck.

I need this for comparing string case-insensitive ...

Thnx !

1 answer

1 accepted

1 vote
Answer accepted
Davin Studer
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 15, 2014

Try this

#set ($myString = $myString.toUpperCase())

RM@DGI
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 18, 2014

Hi Davin !

Works fine. Thnx a lot!

Robert

Davin Studer
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 18, 2014

Glad to hear it! Feel free to check mark this answer.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events