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
2 answers
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.
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.