The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 Champions.
May 18, 2014

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

TAGS
AUG Leaders

Atlassian Community Events