HTTP Verb: GET

Available statuses: 200 OK, 204 No Content, 404 Not Found

Object: TicketComment

Location: n/a

Formats: XML, JSON

Returns a list of components available for space.

Params

Param Description
page Parameter to specify which page to request, see per_page to determine how many items per page.
per_page Specify the number of comments fetched per one page, default is 10.

Examples

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/tickets/_ticket_number/ticket_comments.xml

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Wed, 18 Jul 2012 11:08:35 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<ticket-comments type="array">
  <ticket-comment>
    <updated-at type="datetime">2012-06-20T08:33:18Z</updated-at>
    <user-id>bgnP_qA1Gr2QjIaaaHk9wZ</user-id>
    <ticket-changes>---
      - - status
      - Accepted
      - Fixed
    </ticket-changes>
    <created-on type="datetime">2012-06-20T08:33:18Z</created-on>
    <ticket-id type="integer">2</ticket-id>
    <id type="integer">206</id>
    <comment></comment>
  </ticket-comment>
  ...
</ticket-comments>

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/tickets/_ticket_number/ticket_comments.json

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Wed, 18 Jul 2012 11:12:14 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

[
  {
    "ticket_changes":"--- \n- - status\n  - Accepted\n  - Fixed\n",
    "id":206,
    "created_on":"2012-06-20T08:33:18Z",
    "ticket_id":2,
    "comment":"",
    "updated_at":"2012-06-20T08:33:18Z",
    "user_id":"bgnP_qA1Gr2QjIaaaHk9wZ"
  },
  ...
]

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Description for each field: ticket comments object fields reference page