Report on all tickets created by specific role or a group

Tsura Andreeva
Mega Sage

Hello Communnity, I was asked if I can create a report to show all tickets that are created by ServiceDesk. We have over 75 members as part of Service Desk and typing each name in created by will take time and as people are removed or added to that group, someone would have to maintain the filter.

Is there a way to create the report using created by has a role or created by is member of a group?

Thank you for your help in advance!

1 ACCEPTED SOLUTION

NikEng1
Giga Guru

Hi,

 

You can create a scripted filter that returns the members of that group. I answered a question like this in this thread:

https://community.servicenow.com/community?id=community_question&sys_id=4e4b46b5db3aa05066f1d9d96896...

 

There is also a second way, using database views.

You can join the sys_user_grmember table to the task table on task.opened_by = sys_user_grmember.user. This database view will then contain a row for each combination of task and the groups that the opened user is a member of. Meaning if the person who opens a task is a member of 3 groups, there will be three rows for that task in the DB view.

Then filter to only show the rows where the sys_user_grmember.group is "Servicedesk". This will then return only the rows where the task was opened by a person who is a member of the servicedesk group, one row per task since a person cannot be a member of the same group twice.

 

Hope this helps, if so I would appreciate if you marked my reply as correct. Thank you!

View solution in original post

4 REPLIES 4

NikEng1
Giga Guru

Hi,

 

You can create a scripted filter that returns the members of that group. I answered a question like this in this thread:

https://community.servicenow.com/community?id=community_question&sys_id=4e4b46b5db3aa05066f1d9d96896...

 

There is also a second way, using database views.

You can join the sys_user_grmember table to the task table on task.opened_by = sys_user_grmember.user. This database view will then contain a row for each combination of task and the groups that the opened user is a member of. Meaning if the person who opens a task is a member of 3 groups, there will be three rows for that task in the DB view.

Then filter to only show the rows where the sys_user_grmember.group is "Servicedesk". This will then return only the rows where the task was opened by a person who is a member of the servicedesk group, one row per task since a person cannot be a member of the same group twice.

 

Hope this helps, if so I would appreciate if you marked my reply as correct. Thank you!

Dan163
Tera Contributor

Hi Nik, 

Could you please share a detail step by step for the 2nd way?

Really appreciate if you can assist on this. 

Hi Nik, 

 

I am creating a similar report and am unable to utilize the link provided by you. Seems, it is marked as Archived. Could you please share the solution here? 

https://community.servicenow.com/community?id=community_question&sys_id=4e4b46b5db3aa05066f1d9d96896...