Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

ServiceNow provider update #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ protected function doSubmit($db_storage, $contact, $host_problems, $service_prob
'contact' => $contact,
'host_problems' => $host_problems,
'service_problems' => $service_problems,
'ticket_value' => $resultInfo['sysTicketId'],
'ticket_value' => $resultInfo['ticketId'],
'subject' => $ticket_arguments[
$this->_internal_arg_name[self::ARG_SHORT_DESCRIPTION]
],
Expand Down Expand Up @@ -674,7 +674,7 @@ protected function getListSysUserGroup($params, $accessToken)
protected function getListImpact($params, $accessToken)
{
$uri = '/api/now/table/sys_choice?sysparm_fields=value,label,inactive' .
'&sysparm_query=nameSTARTSWITHtask%5EelementSTARTSWITHimpact';
'&sysparm_query=nameSTARTSWITHtask%5EelementSTARTSWITHimpact%5ElanguageSTARTSWITHen';
$result = $this->runHttpRequest($uri, $accessToken);

$selected = array();
Expand Down Expand Up @@ -702,7 +702,7 @@ protected function getListImpact($params, $accessToken)
protected function getListUrgency($params, $accessToken)
{
$uri = '/api/now/table/sys_choice?sysparm_fields=value,label,inactive' .
'&sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHurgency';
'&sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHurgency%5ElanguageSTARTSWITHen';
$result = $this->runHttpRequest($uri, $accessToken);

$selected = array();
Expand Down Expand Up @@ -730,7 +730,7 @@ protected function getListUrgency($params, $accessToken)
protected function getListSeverity($params, $accessToken)
{
$uri = '/api/now/table/sys_choice?sysparm_fields=value,label,inactive' .
'&sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHseverity';
'&sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHseverity%5ElanguageSTARTSWITHen';
$result = $this->runHttpRequest($uri, $accessToken);

$selected = array();
Expand Down Expand Up @@ -758,7 +758,7 @@ protected function getListSeverity($params, $accessToken)
protected function getListCategory($params, $accessToken)
{
$uri = '/api/now/table/sys_choice?sysparm_fields=value,label,inactive' .
'&sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHcategory';
'&sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHcategory%5ElanguageSTARTSWITHen';
$result = $this->runHttpRequest($uri, $accessToken);

$selected = array();
Expand Down Expand Up @@ -786,7 +786,7 @@ protected function getListCategory($params, $accessToken)
protected function getListSubcategory($params, $accessToken)
{
$uri = '/api/now/table/sys_choice?sysparm_fields=value,label,inactive' .
'&sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHsubcategory';
'&sysparm_query=nameSTARTSWITHincident%5EelementSTARTSWITHsubcategory%5ElanguageSTARTSWITHen';
$result = $this->runHttpRequest($uri, $accessToken);

$selected = array();
Expand Down