Forums

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

Smart value for space on either side of word

Sharon
Contributor
July 24, 2024

 

Looking for a smart value for a space on either side of the word "BMM".

When issue is created, and the "summary" contains "BMM" then edit issue field xx.

 

image.png

 

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2024

Hi @Sharon 

For that type of condition / comparison, I believe the rule editor is removing or ignoring the spaces.

If you wanted to compare to exactly " BMM ", you could use the smart value condition with a regular expression:

  • first value: {{issue.summary}}
  • condition: contains regular expression
  • regular expression: ( BMM )

Kind regards,
Bill

Sharon
Contributor
July 28, 2024

Hi Bill, I'm new to automations. I don't think I'm understanding - is this correct?

Also, is "Match case" ticked or unticked?

image.png

Sharon
Contributor
July 28, 2024

Looks like that has worked! Thanks Bill :)

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events