Hello :)
Now that it is possible to use form fields in automation, and create cascading fields on forms, can you access just the parent option (even if the child option is populated) using automation?
When I've tried using the standard smart value in form automation - eg.
...it just provides both parent and child options. I want just the primary option from the form field where the key is "fieldKey"
Thanks!
Hi @Ste Wright ,
I'm not sure if you can pull specific values directly (e.g. by using something like .child.value). I've tried a similar concept for pulling values directly from Jira field but had no success there.
However, you could maybe use text functions to get what you need. For example, I've managed to get it working by using substringBefore(String separator) function. To be specific, you can probably use
{{forms.last.cscfield.label.substringBefore("-")}}
if you're looking for labels. Or,
{{forms.last.cscfield.id.substringBefore(":")}}
if you're looking for option IDs.
This would, of course, pull parent value/ID, but if you want child value, simply use substringAfter( String separator) function.
This works if you just have a form field, or if the form field is linked to Jira field.
If I manage to get the value 'directly' I'll be sure to come back here and share what I've found.
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.