Rule Automation: How to set condition on specific letter followed by 5 random numbers

Damian Parker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 8, 2024

Hi

I would like to set up a rule based on a letter followed by 5 random numbers from the summary field.

Example:

Summary = R67864 Test example

If the above summary contains (R*****) than the action would take place, however I can't seem to find out how to make this work when the numbers are different.

Please help!

1 answer

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2024

Hi @Damian Parker,

Welcome to Atlassian Community!

You should be able to do this with the If condition and the smart value condition which has an option for regular conditions. R\d{5} would be the regex you want to use, since this would get R followed by exactly 5 numbers.

Damian Parker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 8, 2024

Thank you so much @Mikael Sandberg, worked perfectly!

Like Mikael Sandberg likes this

Suggest an answer

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

Atlassian Community Events