Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Groovy script will fail with special characters in object names

Martin Heini
Contributor
August 6, 2018

We are upgrading to Jira 7.9 and ScriptRunner 5.4.11. After migration some Groovy Scripts failed when including custom fields or issue types names with german 'umlauts' like ä, ö, ü or their capitals.

e.g. actually in a workflow 'Script Validator'

(issue.issueTypeObject.name == '��nderung') ||
((issue.issueTypeObject.name == 'New Feature') &&
(cfValues['R
��ckantwort']?.value != 'keine ��nderung'))

Encoding is defined as UTF-8.

In origin environment and earlier stage environment Jira 7.0 and ScriptRunner 5.1.6.2 all these scripts were still correct.:

(issue.issueTypeObject.name == 'Änderung') ||
((issue.issueTypeObject.name == 'New Feature') &&
(cfValues['Rückantwort']?.value != 'keine Änderung'))

Need some help - otherwise I will change all the object names, custom field options and scripts...

Thanks, Martin

1 answer

1 accepted

1 vote
Answer accepted
Martin Heini
Contributor
August 20, 2018

We set LANG and LC_ALL already in the SLES base Docker image to en_US.UTF-8; that's all!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events