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

Making the WorkItem Query Repository Generic

Some places in the WorkItem Query Repository Service code, the item types are hard coded.

For example in the constructor of ASTTransformer class the item type is hard coded as

fQueryItemType= IWorkItem.ITEM_TYPE;

Can this be fixed, such that the item type is passed as an argument. This will help use the repository service to save and run the queries on types other than WorkItem.

Regards,
Sachin

0 votes



2 answers

Permanent link
There are two query related services available to components. The
Repository component provides a generic IQueryService that can be used
to query arbitrary objects in the repository. The query service that
you are looking at is the other one, provided by work items, that has
extra support for making queries of Work Items easier.

If you would like to query other types of items, take a look at
IQueryService.

sachinnayak wrote:
Some places in the WorkItem Query Repository Service code, the item
types are hard coded.

For example in the constructor of ASTTransformer class the item type
is hard coded as

fQueryItemType= IWorkItem.ITEM_TYPE;

Can this be fixed, such that the item type is passed as an argument.
This will help use the repository service to save and run the queries
on types other than WorkItem.

Regards,
Sachin

0 votes


Permanent link
Can this be fixed, such that the item type is passed as an argument.
This will help use the repository service to save and run the queries
on types other than WorkItem.

Support for creating/saving/running queries for item types other than
work items but using the same infrastructure (Query Editor etc.) is
planned but not available yet.

The underlying Expression model and transformer that you are mentioning
could query for item types other than work items already, although this
is not explicitly supported functionality yet (the IWorkItem.ITEM_TYPE
that you are mentioning is the default but can be set using a
SelectClause). At the moment, I would discourage to use this, though.

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,926

Question asked: Aug 06 '08, 12:41 a.m.

Question was seen: 6,774 times

Last updated: Aug 06 '08, 12:41 a.m.

Confirmation Cancel Confirm