- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2025 08:16 PM
Hi All,
i have case where Problem has been created through incident and I want create button on problem which will redirect it to the incident through which that problem get created.
how I can get this case
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 07:30 AM
you can have server side UI action with this script
openIncident();
function openIncident() {
var gr = new GlideRecord("incident");
gr.addQuery("problem_id", current.sys_id);
gr.query();
if (gr.next()) {
action.setRedirectURL(gr);
}
}
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
‎01-28-2025 07:20 AM
@keshav77 You can use
action.setRedirectURL('/incident.do?sys_id=' + current.sys_id);
to redirect user back to the incident in the UI Action script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2025 07:30 AM
you can have server side UI action with this script
openIncident();
function openIncident() {
var gr = new GlideRecord("incident");
gr.addQuery("problem_id", current.sys_id);
gr.query();
if (gr.next()) {
action.setRedirectURL(gr);
}
}
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