Hitting the REST API is returning an empty list of tickets

Josh Nichols's Avatar

Josh Nichols

30 Oct, 2008 01:17 PM

I'm looking at doing some exporting of tickets, so I was looking at the REST API.

I can get our projects, and a specific project. But trying to fetch the tickets for a specific projec, the tickets was an empty list. Here are the curl commands I used:

curl http://sniflabs.lighthouseapp.com/projects.xml

works, I choose a project id

curl http://sniflabs.lighthouseapp.com/projects/16091/tickets.xml

Reasonably, there could be no tickets, there are definitely tickets, and the project's XML indicates that as well.

  1. 1 Posted by Josh Nichols on 30 Oct, 2008 01:24 PM

    Josh Nichols's Avatar

    Just to follow up, I made my own account, a test project, and a read only token:

    curl http://technicalpickles.lighthouseapp.com/projects/18992/tickets.xml?_token=bb1f3f2091d59643d0538e0974c8583767eabd20

    Still returning empty array when there's 1 ticket in the system.

  2. 2 Posted by Rick on 31 Oct, 2008 03:52 PM

    Rick's Avatar

    The API is the same as the HTML view. Going to /projects/#{id}/tickets in the browser will use your user's default ticket bin (responsible:me state:open if you don't change it). You can do a search by adding a 'q' parameter to the query in the API.

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