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 (4511847) | 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);
break;
}
} }


Comments
Geoffrey Clemm commented Aug 17 '17, 6:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 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 (126) | answered Aug 17 '17, 9:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR

TestComment


permanent link
ast java (4511847) | 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,

https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI

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

Thanks.


Your answer


Register or 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.