GET /v1/spaces/:space_id/space_tools/:space_tool_id/merge_requests/:id/tickets
HTTP Verb: GET
Available statuses: 200 OK, 204 No Content, 404 Not Found
Object: Ticket
Location: n/a
Formats: XML, JSON
Returns a list of tickets attached to a merge request.
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 tickets fetched per one page, default is 10. |
Examples
Request JSON, using cURL utility:
curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/space_tools/_space_tool_id/merge_requests/_id/tickets.json
Response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Thu, 06 Feb 2014 09:23:20 GMT
Server: nginx/0.7.67
Status: 200 OK
Content-Length: 918
...
[
{
"id":37222323,
"number":16259,
"summary":"[API] Set user on ticket comment creation",
...
},
...
]
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/space_tools/_space_tool_id/merge_requests/_id/tickets.xml
Response
HTTP/1.1 200 OK
Content-Type: application/xml; charset=utf-8
Date: Thu, 06 Feb 2014 09:23:20 GMT
Server: nginx/0.7.67
Status: 200 OK
Content-Length: 918
...
<?xml version="1.0" encoding="UTF-8"?>
<tickets type="array">
<ticket>
<id type="integer">37222323</id>
<number type="integer">16259</number>
<summary>[API] Set user on ticket comment creation</summary>
...
</ticket>
...
</tickets>