It's all about the answers!

Ask a question

A problem about projectAlias when using RQM REST API


Yuan Chen (1111) | asked Feb 15 '12, 5:53 a.m.
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



permanent link
Paul Slauenwhite (8.4k12) | answered Feb 15 '12, 6:48 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

permanent link
Yuan Chen (1111) | answered Feb 15 '12, 9:53 p.m.
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


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?

permanent link
Paul Slauenwhite (8.4k12) | answered Feb 16 '12, 12:34 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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.

permanent link
Yuan Chen (1111) | answered Feb 17 '12, 9:38 p.m.
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


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.