A problem about projectAlias when using RQM REST API
Hi,
I'm trying to list all the testcases in a project through the RQM REST API. I referred to https://www-304.ibm.com/support/docview.wss?uid=swg21473152 and tried to input "https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectalias/testcase" in my browser. But I got HTTP 400 error with description "The request sent by the client was syntactically incorrect ()." I doubt the problem is related with the projectAlias, since it worked well when I input "https://server:port/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/projects". The project name is in the form of "ABC+ DE FG", and from the above link, the alias of it is "ABC%2B+DE+FG". I replaced the "projectalias" field in the link, but it didn't work. I also tried with "ABC%2B%2BDE%2BFG" and failed too. Does anyone know about this problem? Thanks! |
4 answers
A couple of comments:
-See https://jazz.net/wiki/bin/view/Main/RqmApis. -Try using Poster (https://jazz.net/wiki/bin/view/Main/RQMUsingPoster) with the correct headers (https://jazz.net/wiki/bin/view/Main/RqmApi#Headers), which does not require URL encoding. -A project alias is a generated unique identifier based on the URL encoded form of a project's initial name. -Try the following project area alias: ABC%2B%20DE%20FG |
A couple of comments: Thank you Paul. But I still cannot get it done. I have tried with the alias you suggested, and with Poster. I checked the URL and am sure it comply with the rules of RqmApi. Does anyone has the convenience to do a quick experiment with similar project name? |
What RQM version are you using? You may be running into https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/53981. This is working in RQM 3.0.1.1 using 'ABC%2B DE FG' in Poster.
|
What RQM version are you using? You may be running into https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/53981. This is working in RQM 3.0.1.1 using 'ABC%2B DE FG' in Poster. That's the problem. The RQM I'm using is 2.0. Thanks Paul! |
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.