Hi all!
I need to create a sub task only when a custom field has a certain value, I read a lot here regarding Script Runner and Conditions and I managed to get mine to work using: cfValues["Team"]*.value.contains('Team Central') || ('Team Other')
BUT! On the production system, the teams have "-" on the name. Team-Central, Team-Other, in this case, the condition cfValues["Team"]*.value.contains('Team-Central') || ('Team-Other') doesn't work and it creates sub-tasks for all other teams.
I have no idea how to make the script read the team name correctly if it is having issues with the special character
unfortunately, changing the field value is not possible in this case.
I also tried ('Team-Central') || ('Team-Other') in cfValues["Team"]*.value and changed double quotes for single quotes and so on, the condition is not being applied.
thank you in advance 
Graci