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

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!

0 votes



4 answers

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

0 votes


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

0 votes


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

0 votes


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

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

Question asked: Feb 15 '12, 5:53 a.m.

Question was seen: 6,495 times

Last updated: Feb 15 '12, 5:53 a.m.

Confirmation Cancel Confirm