tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/46-projectticketssize-projectopen_ticketsLighthouse: Discussion 2011-04-07T05:34:32Ztag:help.lighthouseapp.com,2008-09-20:Comment/134932008-10-19T05:20:38Z2009-06-20T20:02:40Zproject.tickets.size < project.open_tickets<div><p>let me try to format that better:</p>
<p>pro=Lighthouse::Project.find( my_project_id )</p>
<p>pro.open_tickets_count # = 10</p>
<p>pro.tickets.size # = 4</p></div>mfairchitag:help.lighthouseapp.com,2008-09-20:Comment/134932008-10-19T23:23:18Z2009-06-20T20:02:41Zproject.tickets.size < project.open_tickets<div><p><code>Project#open_tickets_count</code> is a count of all the
open tickets in the project. <code>Project#tickets</code>, however,
uses your default ticket bin to list the tickets. It's just an xml
version of the web tickets listing. The default ticket bin is
<code>responsible:me state:open</code> by default, but you can
change this to whatever you want. If you create a new ticket bin
for <code>state:open</code> and set that as your default,
<code>pro.tickets.size</code> should equal
<code>open_tickets_count</code>.</p></div>Rick