Form dropdown field smart value

Jackie hardy
Contributor
January 19, 2025

Good Day,

I am accessing form smartvalues within a Jira automation. The following is returning the value within brackets: {{issue.forms.df605c93-8f76-4b3f-8140-c6205d105cc2.S2Agy1.label}}

Returns [BA0] and I would like BA0 returned. 

How do I get the proper value minus the brackets?

Thank you

 

1 answer

1 accepted

9 votes
Answer accepted
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 19, 2025

Hi @Jackie hardy 

To remove the brackets from the smart value output, you can use the flatten() function. This function will remove the brackets and return the value as a plain string.

{{issue.forms.df605c93-8f76-4b3f-8140-c6205d105cc2.S2Agy1.label.flatten()}}

Let me know if it doesn't work

Thanks

Jackie hardy
Contributor
January 19, 2025

Hello @Pramodh M 

Worked perfectly. Thank you so much!

Take care.

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events