Update Ticket Comment

Omar's Avatar

Omar

03 May, 2012 04:04 PM

Hi,

I want an example of how to update a ticket comment using the API.

I already know that updating a ticket body adds a new comment, but don't know how to update it.

Thanks.

  1. 1 Posted by Nicole on 03 May, 2012 04:14 PM

    Nicole's Avatar

    Omar -

    Have you taken a look at our API docs? You can get examples of updating a ticket from there.

    Are you talking about editing an existing ticket body/comment?

    Thanks,
    Nicole

  2. 2 Posted by Omar on 03 May, 2012 05:30 PM

    Omar's Avatar

    Yes, I wish to edit an existing ticket comment.

    Thanks for answering.

  3. 3 Posted by Nicole on 04 May, 2012 06:34 PM

    Nicole's Avatar

    Omar -

    Every ticket update creates a new ticket version, accessible as the API resource projects/X/tickets/X/versions. Updating a ticket version
    will update a ticket comment in-place. Ticket versions are the same thing as comments. The ticket body is the body of the first ticket version.

    Let me know if this doesn't make sense.

    Thanks,
    Nicole

  4. Nicole closed this discussion on 04 May, 2012 06:34 PM.

  5. omarjavier15 re-opened this discussion on 04 May, 2012 07:09 PM

  6. 4 Posted by omarjavier15 on 04 May, 2012 07:09 PM

    omarjavier15's Avatar

    Ok, you confirmed what I was thinking.

    Thanks a lot Nicole.

  7. Nicole closed this discussion on 04 May, 2012 07:31 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac