It's all about the answers!

Ask a question

Regex with REST API


Fran Burgos (12312151) | asked Aug 11 '15, 4:38 a.m.

I read http://open-services.net/pub/Main/ReportingHome/Reportable_Rest_Services_Interfaces-OSLC_Submission.pdf but I didn't found anything about regex. I have the next XML:

<foundation>
   <teamArea>
      <name>Entities</name>
      <qualifiedName>/Entities</qualifiedName>
   </teamArea>
   <teamArea>
      <name>abc</name>
      <qualifiedName>/abc</qualifiedName>
   </teamArea>
   <teamArea>
      <name>abc</name>
      <qualifiedName>/Entities/abc</qualifiedName>
   </teamArea>
</foundation>

I want match TAs which quilifedName is /Entities/*  (1 and 3). Is there any way to accomplish this?

Accepted answer


permanent link
Donald Nong (14.5k414) | answered Aug 11 '15, 10:24 p.m.
This is unfortunately not doable. Regex is not specified in either OSLC or reportable REST API, and it is not implemented. You may be looking at a "contains" operator which is not part of the specification either.

Note the the field "qualifiedname" is not a queryable one in reportable REST API, so it does not really matter whether the API has regex or "contains".

For work items, you can use the "oslc_cm:searchTerms" parameter to invoke the full text search. But you are looking at team areas, so no luck here.

I have not yet found a way to achieve what you want (the "parentTeamArea" is not queryable either). I suggest you do the filtering _after_ you get the XML response using the reportable REST API.
Fran Burgos selected this answer as the correct answer

One other answer



permanent link
Marek Siekierski (817510) | answered Aug 11 '15, 6:34 p.m.
edited Aug 11 '15, 6:41 p.m.

Hi Fran,

I'm not sure if this is possible. However, to get that information you can try to navigate to

https://<host>:<port>/ccm/process/project-areas

The above URI will give you a list of the Project Areas, and each Project Area there is a URI for a list of Team Areas. ie:

https://<host>:<port>/ccm/process/project-areas/_6qzoIL3oEeSejL5RrAb-fA/team-areas

So the Team Area URI is based on the Project Area UID. It is unique, but it is obtainable.

(I've edited this answer 4 times now and lines are randomly being removed from my post, looks like it was because of the URI links).

Your answer


Register or 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.