- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2025 02:09 AM - edited 10-06-2025 02:10 AM
Hi All,
we have a requirement to add a "Pending/On-Hold" button in the Problem Ticket screen. The purpose is to pause the SLA when the root cause analysis depends solely on a third-party vendor.
Additionally, this button should be visible only to the member of Incident Manager team.
Has anyone implemented something similar or can guide how to achieve this?
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 01:10 AM
You have State model defined for your problem table
So it's not allowing you to move from State A to State B
You will have to update your state model so that you can achieve your requirement and update is allowed and it allows moving from your current State to On-Hold
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 02:50 AM
Hi @surajchacherkar ,
I gave script for UI Action without Client checkbox checked.
For this one, you can use this code
function onPendinOnHold(){
g_form.setValue("state","105");
g_form.save();
}
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2025 02:19 AM
so it should be a UI action, you need to do this
1) ensure you add proper condition for visibility
gs.getUser().isMemberOf('Incident Manager')
2) Script
-> set the state to Pending and update
3) Ensure your add Pause condition in your SLA to pause it when State moves to Pending State
what did you start and where are you stuck?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2025 08:23 PM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 12:42 AM - edited 10-07-2025 12:54 AM
Hi @Ankur Bawiskar ,
I’ve created a UI action, but it’s not working as expected. When I click the bottom button, it opens a new Problem record correctly. However, the top button doesn’t respond at all—clicking it does nothing.
Could you please help me troubleshoot this issue or guide me on what might be missing?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 12:45 AM
Your UI action is client side but script is using current object which is server side
Do these changes
1) Client Checkbox - Unchecked
2) Onclick - remove the function
3) Script - add these 2 lines directly
current.state = 105;
current.update();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
