Edit Comment

Alec Sloman's Avatar

Alec Sloman

14 Feb, 2011 05:32 AM

Hello,

In the webapp, it is pretty straightforward to edit the body of a comment.

But I am not seeing anything in the API about doing that? Am I missing something obvious?

Regards,
Alec

  1. 1 Posted by Nicole on 14 Feb, 2011 03:12 PM

    Nicole's Avatar

    Looks like some styling on the KB has eaten the Update portion of our docs.

    Update Ticket - PUT /projects/#{project_id}/tickets/#{number}.xml

    Update an existing ticket. You can leave out fields to keep them unchanged.

    Request:

    <ticket>
      ...
    </ticket>
    

    Response:

    HTTP Status: 200 OK

    Let us know if you have any questions and we'll update the docs.

    Thanks,
    Nicole

  2. Nicole closed this discussion on 14 Feb, 2011 03:12 PM.

  3. Alec Sloman re-opened this discussion on 14 Feb, 2011 10:58 PM

  4. 2 Posted by Alec Sloman on 14 Feb, 2011 10:58 PM

    Alec Sloman's Avatar

    What I am after is the method by which one can update the body element of a ticket version. Updating a ticket in general and changing the original-body element is indeed well documented and easy to accomplish, but I cannot see how to change the body of a comment with the API.

  5. 3 Posted by Hobson on 18 Feb, 2011 10:55 PM

    Hobson's Avatar

    Generally in Lighthouse the application and the API share endpoints. Have you tried POSTing to the version URL? e.g. /projects/:project_id/tickets/:ticket_number/versions/:version_number.xml

    Hope this helps,

    -hobson

  6. Nicole closed this discussion on 22 Mar, 2011 04:39 AM.

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