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

Renamed projects cannot be found through the RTC plain API.

I am using the findProcessArea to locate projects in a webservice which creates defects in RTC. It seems however that I am not able to locate projects which have changed their name. Anyone with a solution for this or am I doing something wrong??

Sample code:
IProcessClientService processClient = (IProcessClientService) API.repo.getClientLibrary(IProcessClientService.class);
URI uri = URI.create(strProjectAreaName.replaceAll(" ", "%20"));
ipa = (IProcessArea) processClient.findProcessArea(uri, null, null);


0 votes

Comments

never seen a problem here..   the approach you are using must use the current exact name.



One answer

Permanent link
 See https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ for how to iterate the project areas.

There is a project area alias, that should stay constant, however I don't know any way to find that alias.

1 vote

Comments

Thanks Ralph, I was looking at your example to solve the issue. Found it rather strange though that it couldn't find them after the name change. Most PA are found without any problems.

You should be able to find them if you copy/paste the new project area name.
I haven't tried, but that should be possible. Maybe there is some kind of issue with the name you use.

watch out for trailing spaces in the name

Good catch - Trim before the replace?

problem is that the user fills in the field for the project name, and presses save

Thanks guys, I did all of the above. Turned out the project was not inheriting the correct template. So it had nothing to do with the name - works fine, both methods.

please select any of the answers as correct one to complete this question. Thanks.

showing 5 of 7 show 2 more comments

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
× 10,938

Question asked: Oct 14 '15, 7:34 a.m.

Question was seen: 2,533 times

Last updated: Oct 15 '15, 4:40 a.m.

Confirmation Cancel Confirm