Hi devs,

I was trying to find a way to retrieve all tickets belonging to a specific
product, and I was planning on using the get_tickets() method from the
Product class in multiproduct.model. However when calling the method, no
tickets were retrieved (an empty list was returned), even though the
product I was calling the method on did have tickets. I noticed that in
get_tickets(), the from_string() method called was the one from the Query
class in trac.ticket.query, and not from ProductQuery in
multiproduct.ticket.query. I managed to get the desired results only after
I created a method in my api (similar to get_tickets()), which used the
from_string() method from the ProductQuery class in
multiproduct.ticket.query. I'm not sure this is the right way to solve the
problem, though. Do you have any suggestions?

I'm also trying to find out how to retrieve all milestones (or
versions/components) for a product. I couldn't find any existing method
that does this, so I am trying to create one. I was thinking of using the
query() method from the BloodhoundSearchApi class in bhsearch.api, and use
the filter parameter to make the method search only for milestones in a
specific product. But I encountered some problems and I don't know if this
would be the best way to retrieve all milestones belonging to a product.
Are there any other methods that could help me with this? Or is the query()
method the best way to retrieve the milestones?

Thanks,
Antonia

Reply via email to