How to translate "Request Automatically Closed as all Line Items were complete"

OleksiyK
Tera Contributor

Hi Community,

 

OOTB automation adds a comment "Request Automatically Closed as all Line Items were complete" to REQ whenever its closure is triggered by Business Rule "Close Parent if Required" on [sc_req_item].

The code:

new SNC.RequestItem(current).closeParentRequest();

SNC class is a Java implementation, undocumented, sealed etc.  So no chance for reverse engineering. Hence the question,

 

does anyone know how to control (suppress, translate, adjust) the text gracefully?

 

I can imagine a Bus.Rule before insert in [sys_journal_field], but it's too far away from "gracefully".

Thank you!

1 ACCEPTED SOLUTION

Bhavya11
Kilo Patron

Hi @OleksiyK ,


  1. Navigate System UI > Messages
  2. search Key: request automatically closed as all line items were complete

modify or add new with same key and message is different  

Note that this will change the message in other places of the instance where it uses the message with the same key. But I highly doubt this message will be used anywhere else in the platform.

 

Hope that fixes it, let me know how it goes!

Thanks,
BK

View solution in original post

2 REPLIES 2

Bhavya11
Kilo Patron

Hi @OleksiyK ,


  1. Navigate System UI > Messages
  2. search Key: request automatically closed as all line items were complete

modify or add new with same key and message is different  

Note that this will change the message in other places of the instance where it uses the message with the same key. But I highly doubt this message will be used anywhere else in the platform.

 

Hope that fixes it, let me know how it goes!

Thanks,
BK

Hello @Bhavya11 

that's a good one, thank you! 

Indeed, there are translations there in the languages we use.

 

So out of the three challenges "suppress, translate, adjust" we can strike two through.

We can't suppress it completely in this way though. Once the field Message in [sys_ui_message] record contains an empty string "" (which would make ServiceNow ignore the attempt to comment the REQ at all), the Key is used instead. 

 

Anyway, thank you @Bhavya11 for the hint! If nobody else provides a solution to suppress the text entirely, then I gladly pick your idea as the solution.