Cascading Form Field - Smart Values - Access Parent Option Only

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 14, 2025

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.

  • Custom Field: {{issue.fields.fieldName.value}}
  • Form Field: {{forms.last.fieldKey.label}}

...it just provides both parent and child options. I want just the primary option from the form field where the key is "fieldKey"

Thanks!

1 answer

0 votes
Tomislav Tobijas _Koios_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 15, 2025

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events