Home Analyst Portal

Proper format to add analyst comment through the V3 API

Shane_WeberShane_Weber Member IT Monkey ✭

Hello All,

I am in the process of trying to integrate an IVR system with our service desk through the use of the Cireson API.

I can successfully create a new ticket through the api/V3/Projection/CreateProjectionByTemplate and api/V3/Projection/Commit calls.

My goal is to be able to add comments to these tickets.  I can add a comment when I first commit the projection and see it in the portal, but when I pull up an existing ticket using api/V3/Projection/GetProjection and update the Json with the same portion that I used on a new ticket to add a comment it does not add to the ticket.  I can update other features however, such as description and title.

This is the example code that I took from the example document, which does work on the first commit I do on new tickets.

"AppliesToWorkItem": [

      {

        "EnteredBy": "Carrie Medine",

        "Title": "Analyst Comment",

        "IsPrivate": false,

        "EnteredDate": "2014-11-25T20:13:56",

        "LastModified": "2014-11-25T20:13:56",

        "Description": "test",

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

        "ActionType": "AnalystComment",

        "BillableTime": {

          "BasedId": null,

          "DisplayName": null

        },

        "LastUpdatedDisplay": null

      }

    ]


Is there a specific part of the Json I need to input this section into or something else I am missing?

Best Answer

Answers

  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Hi @Shane_Weber

    What type projection are you using for getProjection?

    Geoff
  • Shane_WeberShane_Weber Member IT Monkey ✭
    This is our default IR WI template.
  • Shane_WeberShane_Weber Member IT Monkey ✭
    @Geoff_Ross, I did test the update again after making sure that all of the required fields had been updated on the IR thinking that may have been the issue, but still see the same result of no update.
  • Shane_WeberShane_Weber Member IT Monkey ✭

    @Geoff_Ross Thank you, that bit is what I needed.  I am able to get comments added now! 

    One Last question.  I see that my comments are end user comments where the ones we make manually are analyst comments.  Do I just need to get the ID for analyst comments, ad that to my NameRelationship array and then use that as the ID of my comment?

    Is that ID on the enum tables or relationship table?

Sign In or Register to comment.