Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



2 answers

Permanent link
ilovepumpkin wrote:
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

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",
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.

0 votes


Permanent link
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.

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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,929

Question asked: Feb 25 '09, 7:41 a.m.

Question was seen: 6,601 times

Last updated: Feb 25 '09, 7:41 a.m.

Confirmation Cancel Confirm