- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 06:53 AM
Good afternoon again!
So, here's my problem.
I have a report which shows SLA's which have breached and this is indicated by a tick box (True/False)
When I report on this management don't like it. Is there a away I can change this to Yes/No? Or any particular work arounds?
The out of the box field is called has_breached
Appreciate it thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 08:06 AM
Hi Andrew,
I replicated the same & it gives me data in reports as well.
If it is not working for you, then you can run a background script once & set the before update business rule to update this field.
var grSLA = new GlideRecord('task_sla');
grSLA.query();
while(grSLA.next()){
if(grSLA.has_breached){
grSLA.u_has_breached_string="Yes"; //set custom field value based on has breached field.
}
else{
grSLA.u_has_breached_string="No";
}
}
Thanks
Gaurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 07:22 AM
Worked beautifully, thank you. 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 07:25 AM
That's the beauty of ServiceNow. Glad it helped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2018 07:40 AM
When I run it through the reporting it just shows at empty. Is there anyway I can do it so it updates the choices?