Skip to content

Commit

Permalink
added additional resolution information in the callback from ServiceNow
Browse files Browse the repository at this point in the history
  • Loading branch information
christof.strackSAG authored and christof.strackSAG committed Jul 3, 2020
1 parent 1c4631f commit 511b119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ async function updateAlarmFromIncident(adata) {
const partialUpdateAlarm = {
id: alarmId,
status: "CLEARED",
resolve_note: "Was resolved in ServiceNow at:" + new Date(Date.now()).toISOString()
resolve_note_Cumulocity: "Was resolved in ServiceNow at:" + new Date(Date.now()).toISOString(),
resolve_note_ServiceNow: adata.u_close_notes + "/" + adata.u_close_code
};
// Get filtered alarms and post a message to Slack
const {
Expand Down
2 changes: 2 additions & 0 deletions resource/Trigger_ServiceNow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
string.u_urgency = current.getValue('urgency');
string.u_state = current.getValue('state');
string.u_number = current.getValue('number');
string.u_close_notes = current.getValue('close_notes');
string.u_close_code = current.getValue('close_code');
var u_updated_by = current.getValue('sys_updated_by');
string.u_updated_on = current.getValue('sys_updated_on');
string.u_updated_name = (' ' + resolveName(u_updated_by)).slice(1);
Expand Down

0 comments on commit 511b119

Please sign in to comment.