Is there anyway to fetch PA/TA details using it's name via REST calls?
3 answers
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.
given that paName is the Project Area Name and monitor is the progress monitor
IProjectArea area = null;
if (anArea instanceof IProjectArea) {
IProjectArea foundArea = (IProjectArea) anArea;
if (foundArea.getName().equals(paName)) {
area = foundArea;
System.out.println("PA found: " + paName);
break;
}
} }
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;
}
} }