- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 01:13 AM
Hello,
I have a requirement when Service Now gets an update to the BitLocker status field then it will create an incident for the support group for that computer. Can anyone please suggest me that where we can see the BitLocker status field in service now.
Can anyone please help me with this.
Regards,
Nivedita
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 07:32 AM
Hi,
Go to cmdb_ci.list and search with name --contains--locker and see if there is any record for bitlocker.
Yes, you can write business rule to create an incident. In BR, in when to run the condition can be status changes and in script field you may write below based on your requirement.
var incRec = new GlideRecord('incident');
incRec.newRecord();
incRec.short_description = 'bit locker status changed';
incRec.cmdb_ci = current.sys_id;
incRec.assignment_group ='sys_id_of_group';
incRec.insert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 09:57 AM
Hello Amaradiswamy,
Correct me if i am wrong.
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 10:01 AM
Hi,
Yes, you are correct. But, in which table the compliance status of bitlocker is stored. If you know then you can create a BR on that table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2019 12:42 AM
Hello,
There is one field available in computers table So are you referring this or you are referring something else? Could you please elaborate that.
Please find the below screenshot :
Regards,
Nivedita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2019 01:08 AM
Hello Nivedita,
YOu need to write after update business rule on Computer table and add following code:
When to Run Condition : Bitlocker status is Non-compliant
var incRec = new GlideRecord('incident');
incRec.initialize();
incRec.short_description = 'bit locker status changed';
incRec.cmdb_ci = current.sys_id;
incRec.assignment_group ='sys_id_of_group support group';
incRec.insert();
Mark answer correct/helpful,
Thanks you,
Bilbo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2019 01:38 AM
Hello Bilbo,
Thank you for your reply.
One more thing i need to ask that how i can test this shall i need to create one record in computers table and update that Bitlocker status field as "Noncompliant".
Correct me if i am wrong.
Regards,
Nivedita