How can we check if an incident was assigned to a particular group in past though it is assigned to some other group now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 03:08 AM
Please tell the possible ways to find if incident was assigned to any group in past though it is assigned to any other group now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 03:21 AM
Hi,
You can check it in the "Activity" section. Add "Assignment group" to Activity section.
Let me know if you have any question.
Hit like/helpful/correct answer..
Thanks
Bhargava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 03:23 AM
Hi Bhargava,
Thank you for the answer.
But I want all list of incidents which has a particular assignment group in past.
Thanks & Regards,
Shashank Vashist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 04:10 AM
Hi Shashank,
You can get it from the sys_history_line table. Try this in your background script:
var gr = new GlideRecord("sys_history_line");
gr.addEncodedQuery("set.id=2cef88af6f311200211854b41c3ee4c4^field=assignment_group"); // use a sys_id of a ticket that was reassigned a couple of times or just create one
gr.query();
if (gr.hasNext()) {
while(gr.next()){
gs.print(gr.getValue("new"))
}
}
This will give you a list of teams a ticket was assigned to.
Cheers
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 03:59 AM