Home Analyst Portal

Create a trouble ticket action log entry

Peter_MuttenthalerPeter_Muttenthaler Partner Advanced IT Monkey ✭✭✭

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

Answers

  • Peter_MuttenthalerPeter_Muttenthaler Partner Advanced IT Monkey ✭✭✭
    edited March 2022

    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

        

  • Peter_MuttenthalerPeter_Muttenthaler Partner Advanced IT Monkey ✭✭✭

    @Justin_Workman do ever successfully tried to add an escalation log entry?

    do you've a hint for me?

  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
    Answer ✓

    @Peter_Muttenthaler - You're correct. You can't configure additional action types.

  • Peter_MuttenthalerPeter_Muttenthaler Partner Advanced IT Monkey ✭✭✭

    @Justin_Workman, thank you for your fast reply!

Sign In or Register to comment.