Is there anyway to fetch PA/TA details using it's name via REST calls?
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
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,
|
TestComment |
Hello All,
|
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.