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

How do I get workitems by tags?

 Hello!

I'm trying to use the RTC REST API (version unknown but the URL below may give a hint) to get a list of workitems that contains a specific tag.

If i execute a GET with URL:

   https://mycompany.com/jazz/rpt/repository/workitem?fields=workitem/workItem[tags=|my_tag|]/(id|summary)

...I get a list of workitems that have "my_tag" set (but ONLY "my_tag" set). 
So what is the URL for listing workitems that have "my_tag" and possibly any additional tags set at the same time??? I have tried wildcards (*) and even XPath functions like contains() without success.


My problem is the same as in topic but it's not solved it seems:
https://jazz.net/forum/questions/12782/using-wildcards-in-search-for-tags-in-report


regards,
/Richard

0 votes



2 answers

Permanent link
Hi Richard,
It looks like the issue was fixed in 2.0.  See https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=70480.  I did a quick test on our server and got the same result you did.  I added a comment to the work item asking if there is any special formatting we should be using.

0 votes

Comments

Thank you Lauren! 


Permanent link

This is a limitation of the syntax of the Rest API URLs. Currently we do not support a 'like' operator. So I would  agree this makes querying using tags unusable. Pelase fell free to raise an enhancement request.

0 votes

Comments

Ok, this means that I have to get all workitems and then manually filter on tags. I will take a look at "raise an enhancement request" Thanks Rafik.

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
× 479

Question asked: Nov 16 '12, 5:25 a.m.

Question was seen: 5,590 times

Last updated: Nov 16 '12, 10:53 a.m.

Confirmation Cancel Confirm