How do I access all tickets for a project?

paul (at 8thlight)'s Avatar

paul (at 8thlight)

06 Dec, 2008 04:24 PM

When I do the following query (using the ruby lighthouse-api)

Lighthouse::Ticket.find(:all, :params => { :project_id => 21095 })

I only get the open tickets that I am assigned to. How do I get all of the tickets for the project?

  1. 1 Posted by Rick on 08 Dec, 2008 07:27 PM

    Rick's Avatar

    It's the same as the html view, so it goes by your default ticket bin (or state:open responsible:me if you don't have one set). You can add :q => "all" to the params hash if you don't want any filter. It's also paginated, so you'll need to add page numbers after the first page:

    Lighthouse::Ticket.find(:all, :params => { :project_id => 21095, :q => 'all', :page => 2 })

  2. 2 Posted by paul (at 8thlig... on 11 Dec, 2008 09:36 PM

    paul (at 8thlight)'s Avatar

    Worked great, thx

  3. 3 Posted by chris on 17 Dec, 2008 01:41 PM

    chris's Avatar

    Since it's paginated, it would be nice to get :page => :all. Seems strange to paginate an API call. To get 'all' tickets, I need to write a script to loop through the pages until I get no results.

  4. 4 Posted by Eric on 12 Jan, 2009 07:39 AM

    Eric's Avatar

    I would like this as well.

  5. 5 Posted by Rick on 13 Jan, 2009 09:34 AM

    Rick's Avatar

    Probably not coming until I can figure out a way to load thousands of records without eating up memory.

  6. Rick closed this discussion on 13 Jan, 2009 09:34 AM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts


? 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