# servicenow incident update and close using ansible

**URL:** <https://forum.ansible.com/t/servicenow-incident-update-and-close-using-ansible/36355>\
**Category:** Ansible Project\
**Created:** [February 22, 2022, 11:22am UTC](https://forum.ansible.com/t/servicenow-incident-update-and-close-using-ansible/36355 "2022-02-22T11:22:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay\_Jadhav](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@Akshay\_Jadhav](https://forum.ansible.com/u/Akshay_Jadhav)\
**Post date:** [February 22, 2022, 11:22am UTC](https://forum.ansible.com/t/servicenow-incident-update-and-close-using-ansible/36355/1 "2022-02-22T11:22:20Z")

</div>

Hi Guys,  
Does anyone has any sample playbook for snow incident update and close(end to end automation for device reboot incident).As I am new to API part can someone please suggest how to fetch new incident from snow dashboard for “Node reboot alert” as a short description for incident. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [February 22, 2022, 12:23pm UTC](https://forum.ansible.com/t/servicenow-incident-update-and-close-using-ansible/36355/2 "2022-02-22T12:23:49Z")

</div>

Hi Akshay,

Please go through this video [https://www.youtube.com/watch?v=T8CtycTluos](https://www.youtube.com/watch?v=T8CtycTluos)

Thanks,  
Abhijeet

---

<div class="post-metadata">

**Author:** ![Roberto\_J\_R\_Paz](https://avatars.discourse-cdn.com/v4/letter/r/d2c977/32.png) [@Roberto\_J\_R\_Paz](https://forum.ansible.com/u/Roberto_J_R_Paz)\
**Post date:** [February 22, 2022, 12:40pm UTC](https://forum.ansible.com/t/servicenow-incident-update-and-close-using-ansible/36355/3 "2022-02-22T12:40:46Z")

</div>

My two cents: I saw approaches about this in the past. Most of them used SNOW API. You just have to build a proper JSON payload to interact with SNOW.

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [February 22, 2022, 12:48pm UTC](https://forum.ansible.com/t/servicenow-incident-update-and-close-using-ansible/36355/4 "2022-02-22T12:48:51Z")

</div>

Hi Roberto,

Using REST API with payload is ok, but does not provide idempotency and other Ansible features (check mode, diff etc.). I would still recommend to rely on servicenow.itsm collection.
