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

How to use JAVA API to query work item by tags

Hi, I want to query work item by tags, but the following code return null, anyone can help? Thanks!
IQueryableAttribute queryableAttribute = factory.findAttribute(projectArea, "tags",auditableClient,null);

0 votes


Accepted answer

Permanent link
Have you tried?

        IQueryableAttribute attribute = QueryableAttributes.getFactory(
                IWorkItem.ITEM_TYPE).findAttribute(projectArea,
                IWorkItem.TAGS_PROPERTY, auditableCommon, monitor);


In general you could also call an existing query like described here: https://rsjazz.wordpress.com/2012/10/29/using-work-item-queris-for-automation/ that avoids to expose yourself too much to the API.
Jia Jia Li selected this answer as the correct answer

0 votes


One other answer

Permanent link
Thanks Ralph, but unfortunately I can not access wordpress in China. ..

0 votes

Comments

Sorry to hear that. I heard that there are ways to, but I obviously have no experience. That makes a lot harder in this area.

You can drop me an e-mail at ralph.schoon@de.ibm.com and I can send you the core article as zip. Please mention it the next time, so I can do it again.

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

Question asked: May 19 '15, 5:11 a.m.

Question was seen: 2,444 times

Last updated: May 19 '15, 6:13 a.m.

Confirmation Cancel Confirm