Is there REST API for getting existing Tags values?
I notice that on work item creation, there is content assist for the Tags field, but I can't seem to find the REST API to retrieve the list of all existing Tags value across all work items. Is there such API available? Thanks!
|
One answer
Yes, you can retrieve them using the reportable REST API.
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI
You should get something like this
Comments
Terry Denney
commented May 07 '15, 12:49 a.m.
Thanks for your answer, but I am actually looking for all the existing Tags values across all work items (i.e. what the content assist for the web UI is doing).
Donald Nong
commented May 07 '15, 4:35 a.m.
The URL <base url>/ccm/rpt/repository/workitem?fields=workitem/workItem/tags returns all the existing tags, but you have to process them to obtain a distinctive list. I don't see the tags being stored in any separate tables, so the content assist may just do the same thing described earlier (it may get the content from the index though).
Terry Denney
commented May 10 '15, 1:26 a.m.
Thank you so much for your answer! I do have it working now for tags that are in existing work items. It's interesting that the web UI's content assist actually provides the values that are from deleted work items as well! |
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.
Comments
Can you edit Tag values with REST API ?
We're talking about "reporting REST API" which is for reporting purpose, so no updating/editing. What do you mean faulty tags? You should probably open a new post for this.
To be precise, the original question was not limited to the reporting REST APIs, but rather about REST APIs in general, which would include OSLC REST APIs as well as the the internal REST APIs used by the web UI's to talk to the server (both of which allow for update, not just read access). But I agree that a new post on "updating TAGS" would be preferable than discussing it under the "getting existing TAGs" topic.