I'm trying to conditionally create a subtask based on the value of a custom field. I'm using the script runner plug-in, but can't get the Condition to work. I've tried:
cfValues['customfield_10602'] == 'Client Funded'
But the subtask doesn't get created, even when I have Client Funded value checked on the parent.
The customfield_10602 is a group of checkboxes, and 'Client Funded' is one of the possible choices.
Anyone have any suggestions?
Try
cfValues['customfield_10602']*.value.contains('Client Funded')
cfValues[] returns a list of Option objects if it's a multi select custom field.
Thanks! In addition to the change you suggested, I also found that I needed to provide the name of the custom field (not id). So I finally got it working using this condition:
cfValues['Enhancement Attributes']*.value.contains("Client Funded")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, good catch. I didn't noticed that. :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.