Where can I find Jazz API Javadoc and more example codes?
I know I can get the result of a query defined in Jazz, but I don't know how to get data from qResult. Where can I find Jazz API Javadoc and more example codes? Thanks
IQueryDescriptor iqd = findPersonalQuery("my query", queryClient, repository, projectArea); IQueryResult<IResult> qResult=queryClient.getQueryResults(iqd); If possible, can you provide the sample code to retrieve data from the qResult in the above code? Thanks. |
2 answers
ilovepumpkin wrote:
I know I can get the result of a query defined in Jazz, but I don't I think your best bet is to load the Jazz source into your eclipse environment. Then you'll be able to see the Javadoc using the tools in the IDE, and find lots of examples in our code and testcases. Thanks, Craig Chaney Jazz Server team IQueryDescriptor iqd = findPersonalQuery("my query", |
I think your best bet is to load the Jazz source into your eclipse I agree that looking at how we use the API in our code and tests is probably the quickest way to get your head around it. For the specific example, I assume you are querying work items? In this case, you could use: IQueryResult<IResolvedResult<IWorkItem>> result= workItemClient.getQueryClient().getResolvedQueryResults(query, IWorkItem.SMALL_PROFILE); while (result.hasNext(monitor)) { IWorkItem workItem= result.next(monitor).getItem(); .... -- Regards, Patrick Jazz Work Item Team |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.