Write a script to display inactive problems with p2 incidents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 07:41 PM
Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 07:54 PM
Hi,
Have you try to do with scripting? where you stuck? can you share the script?
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 08:24 PM
I've used on submit type and the below script.
var gr = new GlideRecord('problem');
gr.addQuery('state',4);
gr.query();
while(gr.next()){
var r = new GlideRecord('incident');
r.addQuery('priority',2);
r.query();
}
Its not getting displayed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 09:50 PM
Hi,
it would be nice if you share your complete business requirement
where are you writing the script?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 10:39 PM
I'm using Client script on submit type.