Hello,
In Jira cloud, I have tickets that are automatically created from mail.
I have created a variable {{TypeDemand}} fed from a regular expression based on the body of the mail.
In an automation, I need to check if this variable matches one of the items in a dropdown list (it is a custom field) :
Thank you
Hi @Yannick TEMPORAL -- Welcome to the Atlassian Community!
Yes, that is possible in at least two ways:
#1) Hard-code the values in your automation rule, using a smart value condition with the regular expression.
#2) Using the Send Web Request action, call the two different REST API endpoints to get the custom field's context id and then the options. Use the results to build your regular expression, and then perform the test. This approach will allow the field values to change over time without needing to change the rule.
If you want to try the second approach, here are some references to help:
Kind regards,
Bill
Thanks @Bill Sheboy To speed things up, I've hard-coded the values in the automation rule. But I'll have to do better!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.