Change scheduling assistant warning message Madrid

kedler
Kilo Guru

Hi all,

I recently upgraded to Madrid. On change records, I am getting a warning at the top saying 'Scheduling conflict detected. Use the Scheduling Assistant to avoid conflicts'. I see the onload client script for this message, its called 'Notify Conflicts' but it is not active. So how is this message still popping up if it is not active? Is it coming from somewhere else? Again, this is in Madrid.

find_real_file.png

14 REPLIES 14

Yes, this is what people are looking for and should be the solution. It's controlled in that script if you need to tweak any kind of behavior around the Contact Status.

Shilpi Sharma2
Tera Contributor

Hi All,

I Have done all the changes mention above but still message is visible. Please help.

 

When I ran into this I ended up opening up an HI case on this. End result was that we just learned to accept the banner but here's the recommendation from SN in its entirety.

 

Issue: Conflict Change client script continues to run despite being deactivated after Madrid upgrade

Business Impact: Affecting instances upgraded to Madrid

Steps to Reproduce: im able to see the issue based on the steps to reproduce provided.

Most Probable Cause: In Madrid, The Client Script "Notify Conflict" has been made Inactive and a new Client Script "Conflict change" has been introduced, and the function "getSchedulingConflictMessage()" in UI Script "ChangeRequestConflictUtils" has been introduced too. In Madrid, the "Scheduling conflict detected. Use the Scheduling Assistant to avoid conflicts." message has been added in the latter two artifacts: * UI Script "ChangeRequestConflictUtils" * Client Script "Conflict change"

Solution Proposed: As per my understanding the goal is to suppress this message completely. In Madrid, there is no way to turn Conflict Detection off completely. Suggested the following options to achieve his goals:

1. Disable running the conflict detection automatically by setting property "change.conflict.refresh.conflicts" to false. In this case, the conflict detector would only run manually by clicking on the "Check Conflicts" or "Conflict Calendar" UI Actions. Note. If the conflict detector has not run for a CHG, you would not see the message. HOWEVER, with this option, if the conflict detection has already been run for a CHG, the message might still display.

2. If the above configuration option is not viable, you can customize BOTH UI Script "ChangeRequestConflictUtils" and Client Script "Conflict change" and comment out the relevant parts of the code.

3. The conflict message can be removed by taking out the Warning message from the UI Script. Please follow the below steps:

3a. Navigate to "ChangeRequestConflictUtils" UI Script.

3b. Comment out line 86 : "g_form.addWarningMessage(getSchedulingConflictMessage(), "conflict_warn_status");"

3c. Clear the browser cache and verify the change requests again. Client Script "Check Conflicts" https://xxxx.service-now.com/nav_to.do?uri=sys_script_client.do?sys_id=b04104c673a023008ef62d2b04f6a778 UI Script "ChangeRequestConflictUtils" https://xxxx.service-now.com/nav_to.do?uri=sys_ui_script.do?sys_id=2b9b8efac35132001488b731c1d3ae8b The workaournd you have applyed deactivate the following. This will probably cause any issue on other change functionality. Client Script - Conflict change UI Macro - change_request_conflict_progress (which calls a function in UI Script - changeRequestConflictUtils that has the same message verbiage as the client script).

Next Steps: These are the options available. Please tested it in a subproduction first before applies to production.

 

RamSagar
Tera Guru

Update the conflict detection to run only in the new state, because you don't need the conflict detection once the changes is moved to Assess state(as we lock down the planned start and end dates).

Client Script : Conflict change

Add the condition to show the warning message only in the new state and when the conflict is detected.

if (newValue === "Conflict" && g_form.getValue('state') == '-5') {
g_form.addWarningMessage(getSchedulingConflictMessage(), "conflict_warn_status");
return;
} else if (isLoading || newValue === '')
return;

Now the "Scheduling conflict detected. Use the Scheduling Assistant to avoid conflicts." message will not display through out the change

G_30
Tera Contributor

Hi Kedler,

 

Did you able to find a way to modify/change the message on the warning information in scheduling assistant?

 

please advise.

Thank you!