It's all about the answers!

Ask a question

Is there anyway to fetch PA/TA details using it's name via REST calls?

ast java (451746) | asked Aug 16 '17, 5:22 a.m.

 Hello Team,

I would like to fetch the project area and team area information's using it's names.

I have already know the way using RTC Api's and UUID's in Rest calls.

But is it possible to fetch it by using it's name or path?

Please let me know your opinion.

Thanks in advance.

3 answers

permanent link
Islam Abdelwahab (115) | answered Aug 16 '17, 7:30 a.m.
edited Aug 16 '17, 8:02 a.m.

 given that paName is the Project Area Name and monitor is the progress monitor

IProjectArea area = null;
List areas = service.findAllProjectAreas(IProcessClientService.ALL_PROPERTIES, monitor);
for (Object anArea : areas) {
if (anArea instanceof IProjectArea) {
IProjectArea foundArea = (IProjectArea) anArea;
if (foundArea.getName().equals(paName)) {
area = foundArea;
System.out.println("PA found: " + paName);
} }

Geoffrey Clemm commented Aug 17 '17, 6:00 a.m.

 I believe by "REST calls", ast java is asking for an HTTP API call, rather than a java API call.

ast java commented Aug 21 '17, 3:12 a.m.

Hello Islam,

Thanks for your response.

As i had mentioned I have already knew the way how to fetch using RTC API's and Rest calls using UUID.

But I had asked whether any other way to fetch it using by its (PA/TA) name.

permanent link
Daniel Connell (125) | answered Aug 17 '17, 9:02 a.m.


permanent link
ast java (451746) | answered Aug 21 '17, 3:14 a.m.
edited Aug 21 '17, 3:14 a.m.

Hello All,

I had found the answer for my question.

It has been mentioned in the below link,

In this link how to fetch those details using its name and other fields.


Your answer

Register or to post your answer.