Forums

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

How to check when a description changes by more than a specified number of characters?

Quang Nguyen August 18, 2023

I have a rule to send an email when the description of an issue changes. However, a lot of these changes are due to users fixing typos, punctuations, etc., where there is not a meaningful change in description.

My current plan to fix this is make a rule that only sends an issue when the description changes by more than two alphanumeric characters. That way fixes in punctuation and small typos will not trigger it.

My questions are:

  1. Is there a simpler/better way to achieve this? I want the rule to send a notification when the description changes meaningfully, but not when it is only a small typo/punctuation change.
  2. What is the code required for this? I am assuming some sort of regex would be used?

 

I've attached the (very basic) rule setup I have so far.

2023-08-18_13h48_33.png

1 answer

0 votes
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.
August 19, 2023

Hi @Quang Nguyen 

Have you tried to use the change log and compare the differences in field length, before and after?  Then use an advanced compare condition to check against your threshold value.

For example: 

{{#=}}{{#changelog.description}}{{fromString.length()|0}}-{{toString.length()|0}}{{/}}{{/}}

And here are some references to learn how about this technique:

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer