I have to set up a workflow transistion validation via simple script validator but it does not work. Depending on a value choosen in field "Component/s" another custom field hast be checked if it's empty or not.
I've tried different script strings like:
(issue.components.name.contains 'xy'||(issue.components.name.contains 'Umsystem'&&cfValues['Affected Umsystem-Release']!=null)
Each part of this simple script works as single validation but not in whole. Do you know why?
Additionally, how can I set the codition "component does not contain a certain value"? I've tried this:
result = issue.getComponents().find('Guide-Res') < 1
componentManager.issue.getComponents().find('Umsystem') < 1
issue.getComponents.find('Umsystem Guide-Res') < 1
Thanks for your help! It's very much appreciated!!!
Version of JIRA v4.0.2#472; Plugin Version: 1.7.13