The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

10 votes
Answer accepted
Pramodh M
Community Champion
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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events