Guest User

Untitled

a guest
Jun 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. # I know there are 80 issues associated with this project
  2.  
  3. page_one = RedmineClient::Issue.find(:all, :params => { :project_id => @project_id, :page => 1 } )
  4.  
  5. # returns 1st 25 records
  6.  
  7. page_five = RedmineClient::Issue.find(:all, :params => { :project_id => @project_id, :page => 5 })
  8.  
  9. # returns 1st 25 records
  10.  
  11. page_one == page_five # => true
  12.  
  13. # i've decided that I'm just going to loop thru and if any page has < 25 records, that's the last page. if it doesn't i'm going to test and see if i've already pulled the ID by getting a list of them.
Add Comment
Please, Sign In to add comment