- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2017 11:05 AM
Hi Folks,
I'm very new to ServiceNow, in fact this is my first discussion. We are trying to find the best way to ensure that the Estimated Completion Date (RITM level) will be completed. What is the best way to have the person who is assigned the task fill out the Estimated Completion Date. At first thought we would send a notification to the assigned to person, but if anyone has a different approach or a suggested solution for a similar problem I'd love to hear it.
Thanks in advance for any advice.
rjb
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2017 12:06 PM
Hi Rob,
Glad to help you!! I am working with ServiceNow Platform for past 4 years
In Response to your Second Question, I don't think there is a way to restrict it . Business Rule will Run on both the ITSM as well as Self Service Portal View. I think regarding the process which you have designed, it needs some User training educating them on how to use this feature in ServiceNow rather than restricting it based on views.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2017 08:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2017 09:30 AM
HI,
Nope what you can do, there is already a field named "Request Item" on the Catalog task form as shown below. So users can simply click on Info Icon next to Request Item field and get Redirected to the Parent Requested Item form to Update the Required field.
Or the other way would be to form a Link in your Business Rule itself. Please update the Script as mentioned below to form an URl and get it displayed in th header of the Catalog Task form when Invalid Update message gets displayed:
Script:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var item = new GlideRecord('sc_req_item');
item.get(current.request_item);
if(item.estimated_delivery=='')
{
current.setAbortAction(true);
gs.addInfoMessage('Please Select the Estimated Delivery Date before continuing with Catalog Task');
gs.addInfoMessage('Parent Requested Item <a href ="/sc_req_item.do?sysparm_query=number%3D' + item.number + '">'+ item.number +'</a>'+ 'has been created.');
}
})(current, previous);
Result:
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 07:27 AM
Thank you again Shloke for sharing your knowledge, its very helpful and appreciated.
Is it possible to have this function run only if the user logged in is of itil_user role?
Our concern is that non-roled consumers will get this error message and not know what a RITM is or how to update it.
Limiting this function to itil users and above may be a way to avoid this confusion, unless you know of a better solution.
Thank you,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2017 09:01 AM
Yes, it's very much possible. Please update your script as below to achieve the validation you want:
Script:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var logged_user = gs.getUser().hasRole('admin');
if(logged_user)
{
var item = new GlideRecord('sc_req_item');
item.get(current.request_item);
if(item.estimated_delivery=='')
{
current.setAbortAction(true);
gs.addInfoMessage('Please Select the Estimated Delivery Date before continuing with Catalog Task');
gs.addInfoMessage('Parent Requested Item <a href ="/sc_req_item.do?sysparm_query=number%3D' + item.number + '">'+ item.number +'</a>'+ 'has been created.');
}
}
})(current, previous);
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2017 07:08 AM
Hi Shloke,
That worked great, it was much easier than the way I was attempting. I didn't realize there was the .hasRole function.
Thank you again for sharing your vast knowledge, by the way how long have you been working with ServiceNow?
Thanks again,
Rob