Reaching Tickets Past the First Page
Hey guys. So after a long night, I could finally get the API to
do what I need to. But I can't seem to access anything past the
first 30 tickets.
http://xxx.lighthouseapp.com/projects/xxx/tickets.xml?q=state:open
I've tried adding ?page=1 then 2 then 3, but I can't seem to get anything but the first original 30 tickets. I know there are 65 tickets that match that request. Any suggestions?
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 01 Nov, 2007 05:32 AM
This doesn't work for you? Sending ?page=2 should work fine. It's basically an XML version of the html page. Try it without the .xml extension, and it should match the xml feed.
2 Posted by Kyle Daigle on 01 Nov, 2007 01:35 PM
Rick -
Thanks again. I, after wrestling with a case of dyslexia, got it to work with you suggestion. I wasn't encoding the colon for some reason. Idiot me.
I'm probably going to put together a little 'dummies guide' for the API once I get done with this projects, because I think it would help others who might have had some similar initial glitches.
THANKS for a great product!
3 Posted by Ajay Kapur on 10 Jul, 2008 12:45 AM
Rick, is there a way to get all data without making requests page-by-page. If not, is there a way to get the total number of items?
Thanks.
4 Posted by hpoydar on 19 Sep, 2008 08:17 PM
+1 on the no-pagination request. Thanks!
5 Posted by Martin Pilkingt... on 21 Sep, 2008 02:14 PM
While no-pagination would be nice I can understand why it exists. If you have 100s of tickets then you're going to have an absolutely huge XML file to generate and load. The easy way to work through is:
if (number of tickets on page == 30) {
} else {
}
brandi closed this discussion on 29 Jun, 2012 10:03 PM.