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

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

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



0 votes

Comments

 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 

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

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

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]

0 votes

Comments

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

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.

0 votes

Comments

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

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 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
× 12,023

Question asked: Apr 05 '17, 9:44 a.m.

Question was seen: 3,075 times

Last updated: Apr 10 '17, 3:23 a.m.

Confirmation Cancel Confirm