Forums

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

Comparing text having an email with a custom field text having an email

AldoCauchiSavona
Contributor
February 6, 2023

I am comparing the text I'm extracting from a comment, which is an email and it has been confirmed by loggging the extracted text in a comment with an email address in a custom field.

However the condition is failing. I have this at the moment:

Screenshot 2023-01-26 085639.png

I added .value after the custom field but still nothing.

I also tried comparing their length with {{issue.comments.last.body.substringBefore("\n").length}} verus the custom field's email length with {{triggerIssue.fields.customfield_10076.length}} or {{triggerIssue.fields.customfield_10076.vaue.length}} but the resulting value, from a comment log is null.

 

Any help please? Which can be on how I get the email in the custom field length or to get the Advanced compare condition to work?

Thanks

1 answer

1 accepted

2 votes
Answer accepted
Jeroen Poismans
Community Champion
February 6, 2023

Hi,

Just to test that both expressions return exactly what you think they do, create following Automation rule:

Screenshot 2023-02-06 at 15.42.41.png

 

Then Edit an issue where both fields are present, check whether the rule ran without errors (in the rule Audit log). Then check the comments on the issue. Both values should now be there in a comment. Are both values what you expect?

 

Regards,

 

Jeroen

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events