HTTP Verb: GET

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

Object: TicketAssociation

Location: n/a

Formats: XML, JSON

Returns a list of ticket associations.

Params

No params available

Examples

Request JSON, using cURL utility:

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

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Mon, 16 Jul 2012 10:39:45 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

[
  {
    "relationship":0,
    "created_at":"2012-04-18T11:28:48Z",
    "id":30,
    "ticket1_id":2153,
    "ticket2_id":2
  },
  ...
]

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

Request XML, using cURL utility:

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

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Mon, 16 Jul 2012 10:46:03 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<ticket-associations type="array">
  <ticket-association>
    <ticket1-id type="integer">2153</ticket1-id>
    <created-at type="datetime">2012-04-18T11:28:48Z</created-at>
    <relationship type="integer">0</relationship>
    <id type="integer">30</id>
    <ticket2-id type="integer">2</ticket2-id>
  </ticket-association>
  ...
</ticket-associations>

Description for each field: ticket association object fields reference page