Ticket Bins

List Ticket Bins - GET /projects/#{project_id}/bins.xml

Retrieve a list of ticket bins for the current project.

Response:

<ticket-bins>
  <ticket-bin>
    ...
  </ticket-bin>
  <ticket-bin>
    ...
  </ticket-bin>
</ticket-bins>

Get Ticket Bin - GET /projects/#{project_id}/bins/#{ID}.xml

This fetches the ticket bin.

Response:

<ticket-bin>
  <default type="boolean">true</default>
  <id type="integer">1</id>
  <name>whatever</name>
  <project-id type="integer">2</project-id>
  <query>state:closed</query>
  <tickets-count type="integer">63</tickets-count>
  <updated-at type="datetime">2007-08-12T19:41:41Z</updated-at>
  <user-id type="integer">1</user-id>
</ticket-bin>

Create Ticket Bin - POST /projects/#{project_id}/bins.xml

Creates a ticket bins. The shown fields are the only ones you can set:

  • name - short name used to refer to the ticket bin
  • query - the search query used to find the tickets
  • default - true/false value that determines whether this is the default ticket bin when viewing tickets in Lighthouse.

Request:

<ticket-bin>
  <name>...</name>
  <query>...</query>
  <default type="boolean">false</default>
</ticket-bin>

Response:

HTTP Status: 201 Created
Location: http://activereload.lighthouseapp.com/projects/5/bins/5.xml

<ticket-bin>
  ...
</ticket-bin>

Update Ticket Bin - PUT /projects/#{project_id}/bins/ID.xml

Updates a ticket bin. The shown fields are the only ones you can set:

  • name - short name used to refer to the ticket bin
  • query - the search query used to find the tickets
  • default - true/false value that determines whether this is the default ticket bin when viewing tickets in Lighthouse.

Request:

<ticket-bin>
  <name>...</name>
  <query>...</query>
  <default type="boolean">false</default>
</ticket-bin>

Response:

HTTP Status: 200 OK

Delete Ticket Bin - DELETE /projects/#{project_id}/bins/#{ID}.xml

Response:

HTTP Status: 200 OK