Home Analyst Portal

Help with Action Log Comment Type

Shane_WeberShane_Weber Member IT Monkey ✭

Hi All,

I am creating an interface via the API with our IVR phone system, so that our tech can update IR and SR work items.  With the help of the forums I got the part of the json I needed to update to add comments to the ticket, however I can only seem to add a end user comment.

Update for Incident Requests

{

"ActionType": {

  "Id": "f14b70f4-878c-c0e1-b5c1-06ca22d05d40",

  "Name": "Analyst Comment"

},        

"Description": "Comment tst 4, new comment",

"EnteredBy": "Shane Weber",

"EnteredDate": "2019-06-10T19:18:32.2336149",

"LastModified": "2019-06-10T19:18:32.2336149",

"Title": "Analyst Comment",

"Image": "/Content/Images/Icons/ActionLogIcons/recordassigned.png",

"IsPrivate": null,

"LastUpdatedDisplay": null,

"isDirty": true                        

}

Json for Service Requests

{

            "ActionType": {

  "Id": "79d27435-5917-b0a1-7911-fb2b678f32a6",

  "Name": "Analyst Comment"

},        

"Description": "Comment test 1, new comment",

"EnteredBy": "Shane Weber",

"EnteredDate": "2019-06-10T19:18:32.2336149",

"LastModified": "2019-06-10T19:18:32.2336149",

"Title": "Analyst Comment",

"Image": "/Content/Images/Icons/ActionLogIcons/recordassigned.png",

"IsPrivate": null,

"LastUpdatedDisplay": null,

"isDirty": true                        

},


On each update I also have the relatestotroubleticket or appliestoworkitem section in the name relationship array.  I believe that I need to update the relationshipid in the name relationship array and in the Action Type, but when I change that to anything else I cannot get the updates to post.

Best Answer

Answers

  • Shane_WeberShane_Weber Member IT Monkey ✭
    Nicholas_Velich that partially answered it, I needed to remove the space, but also I needed to set isPrivate: true or false instead of null.
  • Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    Glad to hear it, Shane!
Sign In or Register to comment.