Service...ncident(3)

πŸ“¦
version 1.01 Β· 2 versions
, in fedora 43

πŸŽ€ Service...ncident(3) πŸŽ€

okay so bestie, welcome to the Service-now Perl API β€” this one's the Incident perl module, and she's a whole icon. it lives in User Contributed Perl Documentation, and if you're here you're probably about to do some very serious ticket wrangling. slay. πŸ’…


✨ Incident module ✨

Service-now Perl API - Incident perl module


πŸ’– Desciption πŸ’–

an object representation of an Incident in the Service-now platform. she provides subroutines for querying, updating, and creating incidents. literally your whole incident lifecycle, handled. no cap. πŸ”₯


🌸 System Requirements 🌸

the Service-now Perl API requires Perl 5.8 with the following modules installed:

bestie do NOT skip these. install them first, thank me later 🫢

πŸ¦‹ Constructor πŸ¦‹

⭐ new

new(Configuration);

Example:

$incident = ServiceNow::ITIL::Incident->new($CONFIG);

takes a configuration object and manufactures an Incident object connected to the Service-now instance. that's it, that's the birth of your incident object, main character energy from day one πŸ‘‘


πŸ’œ Subroutines πŸ’œ

🌈 close

close(number, hashmap);

Example:

$incident->close($number)

close an incident and update values described in the hash map passed in. bye bye incident, hope you had a good run πŸ₯²


🧚 reopen

reopen(number, hashmap);

Example:

$incident->reopen($number);

re-open a closed incident and update values described in the hash map passed in. not me resurrecting a closed ticket… it's giving necromancy, honestly πŸ’€


πŸ“ createProblem

createProblem();

create a problem ticket from an incident and associate it. returns the sys_id of the newly created problem ticket. look at you, escalating the drama properly ✨


πŸ”₯ createChange

createChange();

create a change request from an incident and associate it. returns the sys_id of the newly created change request. iconic behaviour, fr fr πŸ‘‘


reminder bestie: those sys_id returns are the receipts. hold onto them. πŸŽ€

and that's the whole page, my love πŸ’– this was Service...ncident(3) from User Contributed Perl Documentation, and the footer energy is: perl v5.42.0, dated 2025-07-25. go forth and query, update, and create incidents like the absolute legend you are 🌟 periodt.

πŸ“¦ where this page comes from