- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2019 12:08 AM
How to find non admin user in servicenow, he must have permissions to raise Ritm
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 03:57 AM
Can you add the log statement in the script include after this line and tell me the log output.
var thisUser = gs.getUser().getUserByID(userID);
gs.log("Group name is "+groupName+"----"+userID);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 01:35 AM
Yes returning false only, if i raised the ritm as non admin variables tab shows as editable.
if close the window and open again the same ritm the variables tab is in read only mode.
But my concern is why its not happening at the time of raised ticket

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 01:41 AM
The question is,
When you are raising a ticket, What is the output do you see in the client script
vs
What is the output you see when you opened an existing ticket?
Can you paste both the outputs here to understand once?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 01:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 01:57 AM
IF you notice, For new ticket, the script include output is not coming at all.
Can you go to system logs and check what the logs says (last 15 minutes) when you open the new ticket.
You shoudl get following script logs
gs.log("Enered into the if condition of my script include");
gs.log("Returned true becuase user is member of this group");

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2019 02:00 AM
Also, when you open a newly raised ticket,
Do you have assignment group already set? because you are passing g_form.setValue('assignment_group') in the on load function?