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

Filter work items by tags with reportable rest API of RTC

 Hi,


I am trying to get all work items with a specific tag. Is this possible somehow?

My current solution is to retrieve all work items via the reportable REST API of RTC and then filter on client side. But this is a huge overhead.

Thank you,
Jochen

0 votes



One answer

Permanent link
You can try the following:
https://<server>:9443/ccm/rpt/repository/workitem?fields=workitem/workItem[tags=|xyz|]/*
which will return all work items having the tag xyz.
You can note that | is needed as tags are always separated by |, even if there is single tag. You can also use more filters.

0 votes

Comments

Thank you for your answer. 


I have tried this out. Unfortunately it only returns the work items where the given tag is the only tag. If a work item has also other tags, it won't be included in the result.

Is there any filter possibility like <tag> in <taglist> or <taglist>.contains(<tag>), which returns all work items which contain at least the given tag? 

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
× 12,085
× 484
× 459
× 137
× 35
× 2

Question asked: Mar 17 '21, 12:51 p.m.

Question was seen: 2,758 times

Last updated: Mar 18 '21, 3:16 a.m.

Confirmation Cancel Confirm