Notifications

60 views

Description

After Madrid upgrade a yellow banner in change forms that stated "Scheduling conflict detected. Use the Scheduling Assistant to avoid conflicts." 

Resolution

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"

However, in Madrid, there is no way to turn Conflict Detection off completely.

Suggested the following workaround to remove the message:

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:
1. Navigate to "ChangeRequestConflictUtils" UI Script.
2. Comment out line 86 : "g_form.addWarningMessage(getSchedulingConflictMessage(), "conflict_warn_status");"
3. 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

Article Information

Last Updated:2019-10-21 02:38:40
Published:2019-10-21