How do I access all tickets for a project?
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?
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
1 Posted by Rick on 08 Dec, 2008 07:27 PM
It's the same as the html view, so it goes by your default ticket bin (or
state:open responsible:meif 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 Posted by paul (at 8thlig... on 11 Dec, 2008 09:36 PM
Worked great, thx
3 Posted by chris on 17 Dec, 2008 01:41 PM
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 Posted by Eric on 12 Jan, 2009 07:39 AM
I would like this as well.
5 Posted by Rick on 13 Jan, 2009 09:34 AM
Probably not coming until I can figure out a way to load thousands of records without eating up memory.
Rick closed this discussion on 13 Jan, 2009 09:34 AM.