It's all about the answers!

Ask a question

REST-API: Original Project Area name not working in REST API URL


Jörg Werner (3032560) | asked Apr 05 '17, 9:44 a.m.

Hello,

I've a RQM project area, named "TDG1 Demo"

when I try to get data with Rest API:

https://<my-server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/testsuite/urn:com.ibm.rqm:testsuite:72

I get: Error 404: SRVE0295E: Error reported: 404

when I try it with

https://<my-server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1_QA_CLONE3/testsuite/urn:com.ibm.rqm:testsuite:72

it works fine.

When I export to a csv file, RQM also uses TDG1_QA_CLONE3. The only place where I find this name is on
Mange this project area site:



Why I can not use "TDG1+Demo"?

   thanks, jörg




Comments
Ara Masrof commented Apr 05 '17, 10:56 a.m.
JAZZ DEVELOPER

 Jorg,

You can get a list of Project Areas and their corresponding Aliases using the following command:
https://<myserver>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects 


Jörg Werner commented Apr 06 '17, 4:20 a.m.

Thanks Ara!

Two questions:
1) Can I change the alias?
2) Why I have to use the alias in the above query and can not use the standard project name?

 Cheers, Jörg


Georg Kellner commented Apr 06 '17, 4:26 a.m.

Hi Jörg,

you can change the project name as often as you want to.
So using the alias is more stable instead of using the project name.

Greetings Georg.

2 answers



permanent link
Jörg Werner (3032560) | answered Apr 06 '17, 5:35 a.m.

Hi Georg!

thanks for the answer.

Does this mean, that it is not possible to change the alias?

What I do not understand is why sometimes the project Area name is working and sometimes not:

the following requests are working both:
1) https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/testsuite
2) https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1_QA_CLONE3/testsuite

But If I try
3) https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/testsuite/urn:com.ibm.rqm:testsuite:62?fields=feed/entry/content/testsuite/(suiteelements)
I get an error:  Error 404: SRVE0295E: Error reported: 404

Whereas with the alias the same query works:
4) https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1_QA_CLONE3/testsuite/urn:com.ibm.rqm:testsuite:62?fields=feed/entry/content/testsuite/(suiteelements)


Background: A third party tool we use runs into this issue. The quickest fix would be, if can change the alias name.


And "more stable" seems not be always true :-(. If I try to connect to the project area, using the alias in the browser, I get the error message:

You have successfully logged into Jazz Team Server but not able to access the Project 'TDG1_QA_CLONE3'.

 Thanks, Jörg


[we use RQM 6.0.3]


Comments
Georg Kellner commented Apr 06 '17, 5:58 a.m.

We've discovered this behavior after renaming some project areas.
But I don't why requests sometimes work with both and sometimes only witth the alias.


permanent link
Donald Nong (14.3k213) | answered Apr 07 '17, 1:16 a.m.

A similar discussion took place two years ago.
https://jazz.net/forum/questions/178502/can-you-rename-a-rational-quality-manager-project-area-alias

A project alias is a generated unique identifier based on the URL encoded (see RFC 2396 ) form of a project's initial name. This identifier never changes once created, thus it can be used to reference a project even when the project's name is changed.

If you replace the term "alias" with "ID", you will understand why. If you do what Ara suggested, to get a list of the project areas, you will see that the "alias" is referred to as "identifier", whereas the project name as "title".

I believe in your case "TDG1_QA_CLONE3" is actually the "original" (as when first created) project name. The fact that you can use "TDG1 Demo" in some requests should not matter.


Comments
Jörg Werner commented Apr 10 '17, 2:53 a.m.

Yes Don, TDG1_QA_CLONE3 is the original name and was later renamed.

Okay, TDG1_QA_CLONE3 is the identifier.
But if I initially want to open the project area, I can not specify this identifier, I've to use the new project area name. Otherwise I get the error:

You have successfully logged into Jazz Team Server but not able to access the Project 'TDG1_QA_CLONE3'.


Can you explain the reason for this behavior?

   thanks, jörg


Donald Nong commented Apr 10 '17, 3:23 a.m.

When you say you "want to open the project area", what URL are you going to use? Is it still related to REST API? The web UI may use a different logic and has different requirements.

Your answer


Register or to post your answer.