- 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-19-2019 03:05 AM
Hello Nag,
As per your earlier script output, the task is NOT Closed Complete. So obviously the code will not work.
So check for any closed complete task and let me know if the code did not work.
And secondly since you wrote the client script onload, if the task is completed now, then the variables goes into read-only mode on next onload.
Let me know if the variables are not going into readonly if the task is closed complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2019 03:18 AM
I raised a ticket and changes the task state closed complete, Again reloaded the same ritm but no luck still its editable
if i change state(sc_req_item) value to closed complete in ritm form its working, becoz the code is running on requested item table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2019 03:20 AM
So once the catalog task is closed complete, you want the variables in RITM form to be read only?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2019 03:21 AM
yes asif, finally u get my point
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2019 03:29 AM
🙂
Can you tell me the business case behind this?
Generally in SN, for a RITM, there could be more than 1 catalog task.So given this scenario, what if the RITM has mutliple catalog tasks? When do you want to make variables readonly? When all associated catalog tasks are closed, then the RITM will be closed complete automatically.
When RITM is closed automatically, then as per my latest code given, the variables in RITM will become readonly.
Also, as requested earlier, can you mark my other comment(s) as helpful.