- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2018 08:10 AM
I know pretty much the only way to show list of open incidents based on assignment group that user selected in catalog item is use UI macro. Does anyone know or have example codes for that? I just want a list of open incident tickets with each of them have clickable link to go to ticket form.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2018 07:03 AM
Hi Frank,
The script should be updated as below and then you will get those many records.
also add log statement to print that
<g:evaluate var="jvar_gr" object="true">
gs.log('Assignment group sys id is: ' + jelly.jvar_assignmentGroup_sys_id);
var gr = new GlideRecord("incident");
gr.addQuery("assignment_group", jelly.jvar_assignmentGroup_sys_id); // query incident table with this assignment group
gr.query();
gr;
</g:evaluate>
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
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
‎01-31-2018 07:03 AM
Hi Frank,
The script should be updated as below and then you will get those many records.
also add log statement to print that
<g:evaluate var="jvar_gr" object="true">
gs.log('Assignment group sys id is: ' + jelly.jvar_assignmentGroup_sys_id);
var gr = new GlideRecord("incident");
gr.addQuery("assignment_group", jelly.jvar_assignmentGroup_sys_id); // query incident table with this assignment group
gr.query();
gr;
</g:evaluate>
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
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
‎02-07-2018 11:00 AM
This worked. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2018 02:57 AM
Hi Frank,
Any update on this?
Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader