Hi!
I have a dropdown customfield where all fields are in the format "Some value [custom ID]".
When running an automation rule, I need to get just the custom ID part of the customfield.
If I just print the customfield, it works, but if I add any smart value functions to it, I just get a blank text
The below is what should be correct to get the custom ID part:
{{issue.customfield_NNNNN.match("(\[.*?\])").get(0).substring(1,-1)}}
On a similar topic, there aren't any dropdown options where I can show a text with a corresponding hidden value in jira?
Hi @Kai Ytterberg and welcome to the community
Text methods do not apply to single select fields. That's why you are getting null. You should first place your value on a variable and then do your expression. Mine works like this:
And I get proper results!
Hope that helps :)
Thank you! Exactly what I was looking for! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to know that! Thank you for marking my answer as accepted! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.