Remove case sensitivity for automation trigger statement

Aleksey Bobryshev July 20, 2023

I'm currently working on trying to remove case sensitivity for an automation rule that triggers the addition of a label.

The rule is trigger when a comment is added (main action) and then a particular string is detected.

I've tried various options to do this and have had no luck.

When I do 

First value: {{comment.body}}

Condition : Contains

Second Value: after staging deployment run this

it properly adds the label I want. However if the case sensitivity is not exactly matched it does not trigger.

 

I've tried doing

First Value: {{comment.body.toLower()}}

Condition: Contains

Second value: (?!).*after staging deployment run this sql.*

with no luck, as well as :

comment.body.containsIgnoreCase

with conditions: contains regular expression and etc.

 

I would appreciate any assistance with this ruling.

Thanks!

 

 

2 answers

1 accepted

2 votes
Answer accepted
Kseniia Trushnikova
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 20, 2023

@Aleksey Bobryshev, привет!

Try this:

First value: {{issue.comments.last.body.toLowerCase()}}
Condition : contains
Second value: after staging deployment run this

0 votes
Aleksey Bobryshev July 24, 2023

@Kseniia Trushnikova , привет! 

это сработало, cпасибo!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events