You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with UI Action Implementation for Incident Cancellation #2299
I found that the incident cancellation UI Action implementation at Cancel Incident UI Action using a GlideModal confirmation introduces unnecessary complexity and reduces maintainability. A simpler approach using a standard browser confirmation dialog combined with clear server-side logic for setting the incident state to "Cancelled," adding work notes for traceability, and redirecting the user is more readable and easier to maintain.
Proposed Enhancement:
Simplify the incident cancellation UI Action by removing the GlideModal confirmation and replacing it with a straightforward alert prompt. The revised UI Action should:
Use a simple confirmation dialog for user acknowledgment
Clearly log cancellation in work notes for traceability
Update the incident state to "Cancelled" (state = 8)
Redirect the user appropriately after cancellation
Follow ServiceNow best practices by clearly separating client-side confirmation and server-side business logic
Goal:
To improve code simplicity, maintainability, and user experience by refactoring the incident cancellation UI Action following ServiceNow client-server scripting best practices.
Assign to Me:
I would like this issue assigned to me to proceed with implementation and validation of the improved UI Action.
As the original author who raised this issue and requested it be assigned to me, I noticed that it was also assigned to another contributor who has created a pull request. I have now submitted a new PR addressing the same issue I raised, with the proposed fixes and improvements.
Please review my pull request and consider it alongside the existing contributions. I welcome your feedback and any suggestions.
Activity
Shashank0701-byte commentedon Oct 19, 2025
I’d like to take the lead on this issue. Could you please assign it to me so I can start working on it?
Thank you!
Sriharsha19 commentedon Oct 20, 2025
Hi @ravichandra1998g,
As the original author who raised this issue and requested it be assigned to me, I noticed that it was also assigned to another contributor who has created a pull request. I have now submitted a new PR addressing the same issue I raised, with the proposed fixes and improvements.
Please review my pull request and consider it alongside the existing contributions. I welcome your feedback and any suggestions.
Thank you for your time and consideration.