Quality Center Support and News
Showing results for 
Search instead for 
Do you mean 

How to get defect public filters?

Occasional Visitor

How to get defect public filters?

Hi all,

I'm writing a Java connector (http://qcmylyn.sourceforge.net) for Mylyn (http://www.eclipse.org/mylyn) that aims to integrate Qc (9.0, 9.1, 9.2) into Eclipse.
I'm using Jacob and the COM Api.

My problem is: I don't know how to get the public favorites of the Defect component (where you choose the filters and the sorts you want to apply)...
I'm able to get the private favorites, but if I change the TDConnection.UserSettings by the TDConnection.CommonSettings (as they return both a Settings), I get nothing interesting...

I've seen that you can use a category (see Open method of the Settings object)... but I don't know what is the name of the category I have to use (is there a list that is available somewhere) ?!

Do you have an idea??

Thanks!
3 REPLIES
Honored Contributor Honored Contributor

Re: How to get defect public filters?

BugViews
Query the common_settings table for a unique name.
Occasional Visitor

Re: How to get defect public filters?

It works! Thanks a lot!!
Occasional Visitor

Re: How to get defect public filters?

Hi,

I'm trying to get the list of public filters and then select one of the items from that list and get the list of defects. I've been dealing with the QC API for quite some time now but those filters are just driving me nuts. So what i need basically is the code to:

1) Get the list of public filters
2) Get the list of defects by selecting a public filter

Thank You