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

Regex with REST API

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?

0 votes


Accepted answer

Permanent link
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

0 votes


One other answer

Permanent link

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).

0 votes

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,927
× 478

Question asked: Aug 11 '15, 4:38 a.m.

Question was seen: 6,319 times

Last updated: Aug 11 '15, 10:24 p.m.

Confirmation Cancel Confirm