I am trying to filter defects on the basis of iteration # in defects tab and extracting that count in my summary report.This is done using OTA

However when i set the filter for iteration #, it gives me the total count of defects and not the iteration defect count. Here is the code. Note that iteration field is user defined field in QC.

Set bugf = tdc.BugFactory
set bgfilter = bugf.Filter
bgfilter.Filter("BG_USER_03") = "Iteration 01"
set buglist = bgfilter.newlist
msgbox "No. of defects in Iteration 1 = "&buglist.count

Please suggest any solution.