Forums

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

Automation: Update custom field is not working properly

KLINGER Servicedesk August 23, 2025

Dear community, 

I have an automation rule where one of our supplier can update our ticket via email.

My rule says that if the email contains their ticket id our custom field "External Ticket ID"  shall be updated (email --> variable --> custom field)

In the history of the ticket I can see that the field value has been updated properly. 

Also the log action shows the proper value.

But our custom field is still empty.

Manually I can add the value.

Any ideas?

 

5 answers

3 accepted

0 votes
Answer accepted
KLINGER Servicedesk August 23, 2025

Could it be that JSM does not differentiate between NULL and empty? so that when a comment does not contain a "ticket ID" it will set the field to None?

 

0 votes
Answer accepted
KLINGER Servicedesk August 23, 2025

24-08-2025 07-30-50.png24-08-2025 07-30-05.png24-08-2025 07-24-02.png24-08-2025 07-23-38.png

0 votes
Answer accepted
Trudy Claspill
Community Champion
August 23, 2025

Hello @KLINGER Servicedesk 

Please provide the following information.

1. Screen images showing the entire rule.

2. Images showing the details of each step.

3. Images showing all the information available in the audit log entry frin when the rule executed.

Trudy Claspill
Community Champion
August 23, 2025

Please provide images showing the entire rule, and the step where you are trying toset the field.

KLINGER Servicedesk August 23, 2025

It seems that when an email/comment does not contain a value in the format "{{issue.comments.last.body.match("(V\d{8}\-\d{5})")}}" Jira sets the value to NULL. Very strange. I know this behavior (NULL vs Empty) 10 years ago.

0 votes
KLINGER Servicedesk August 23, 2025

The solution is that I have to adjust my automation rule in the way that my field "External Ticket ID" shall be updated only in the case if there is a value!

0 votes
KLINGER Servicedesk August 23, 2025

Jira should work like this: If you can´t find a value for a variable, do NOTHING and do not erase the field.

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