Create a trouble ticket action log entry
Dear all,
I want to create a trouble ticket action log instead of a end User comment:
thats my configuration (part):
saveStatus: function () {
var ogir = pageForm.viewModel;
var newir = JSON.stringify (ogir);
var finalir = JSON.parse(newir);
finalir.Escalated = this.escalateIr;
//finalir.AppliesToWorkItem = [{
finalir.AppliesToTroubleTicket = [{
"ActionType": {
"Id": "4c04d527-a16a-58ed-c0a8-821f53b67f09",
"Name": "Record Escalated"
},
"EnteredBy": session.user.Name,
"Title": "Incident escalated",
"ClassName": "System.WorkItem.TroubleTicket.ActionLog",
"ClassTypeId": "dbb6a632-0a7e-cef8-1fc9-405d5cd4d911",
"IsPrivate": false,
"EnteredDate": new Date().toISOString().split(".")[0],
"LastModified": new Date().toISOString().split(".")[0],
"Description": this.get("comment"),
"Image": app.config.iconPath + app.config.icons["Record Escalated"],
"BillableTime": {
"BasedId": null,
"DisplayName": null
},
"LastUpdatedDisplay": null
}];
var strData = { "formJson":{"original": ogir, "current": finalir}}
$.ajax({
url: "/api/V3/Projection/Commit",
type: "POST",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify(strData)
});
},
do you have an idea what to change?
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
@Peter_Muttenthaler - You're correct. You can't configure additional action types.
0
Answers
update
Record resolved is working
"ActionType": {
"Id": "5ca2cfee-6740-1576-540B-ce17222840b8",
"Name": "Record Resolved"
},
escalated isn't (got infos from another entry and database)
"ActionType": {
"Id": "4c04d527-a16a-58ed-c0a8-821f53b67f09",
"Name": "Record Escalated"
},
Does anybody have an idea?
for me it looks like the portal doesn't accept the "Action Type", either config is out of the portal
@Justin_Workman do ever successfully tried to add an escalation log entry?
do you've a hint for me?
@Peter_Muttenthaler - You're correct. You can't configure additional action types.
@Justin_Workman, thank you for your fast reply!