Forums

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

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

Damian Parker 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 Champion
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 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