1ServiceNow::ITIL::Task(U3s)er Contributed Perl DocumentatSieornviceNow::ITIL::Task(3)
2
3
4
6 Service-now Perl API - Task perl module
7
9 An object representation of a Task in the Service-now platform.
10 Provides subroutines for querying, updating, and creating tasks. Task
11 is the parent class of Incident, Problem, Change, SC_Task and Ticket.
12 These child classes inherit subroutines from this class.
13
14 System Requirements
15 The Service-now Perl API requires Perl 5.8 with the following modules
16 installed
17
18 * SOAP::Lite (prerequisites http://soaplite.com/prereqs.html) 0.71 or later
19 * Crypt::SSLeay
20 * IO::Socket::SSL
21
23 new
24 new(Configuration);
25
26 Example:
27
28 $task = ServiceNow::ITIL::Task->new($CONFIG);
29
30 Takes a configuration object and manufactures an Task object connected
31 to the Service-now instance
32
34 create
35 create(optional paramaters)
36
37 Example:
38
39 $task->create();
40
41 Creates and inserts Task/Incident/Ticket/SC_Task record into the
42 respective table. Returns the number of created record on succes,
43 undef on failure.
44
45 close
46 close(number of record, optional parameters)
47
48 Example:
49
50 $task->close('INC1000312');
51
52 Sets the state of Task/Incident/Ticket/SC_Task to closed and updates
53 the respective table. Returns the number of created record on success,
54 undef on failure.
55
56 reopen
57 reopen(number of record, optional parameters)
58
59 Example:
60
61 $task->reopen('TKT1003010');
62
63 Sets the state of Task/Incident/Ticket/SC_Task to open and updates the
64 respective table.
65
66 reassign
67 reassign(number, group, user);
68
69 Example:
70
71 $incident->reassign($number, 'Database', 'user')
72
73 Re-assign an incident to the group and user specified.
74
75 queryJournal
76 queryJournal(configuration file, optional field name)
77
78 Example:
79
80 $task->queryJournal($config, 'work_notes');
81
82 Returns an array of hash references to each journal associated with the
83 current Task/Incident/Ticket/SC_Task. Optional field name refines the
84 search to a specified field.
85
86 attach
87 attach(file path)
88
89 Example:
90
91 $task->attach("/Users/davidloo/Desktop/test_files/number_test.xls");
92
93 Attach a file to a record of Task
94
95
96
97perl v5.34.0 2021-07-22 ServiceNow::ITIL::Task(3)