It's all about the answers!

Ask a question

Finding ITeamArea for a repository connection - 1.0 M6a


Srimanth Gunturi (206125) | asked May 01 '08, 8:48 p.m.
JAZZ DEVELOPER
Hello,
Previously IProcessItemService.findTeamAreas(IContributor,
IProjectAreaHandle, Collection, IProgressMonitor) used to return
correctly all the TeamAreas for a connection - in 1.0 M6a it returns
null. Has the semantics of the API changed, or is the IProjectAreaHandle
parameter required?

Is it possible to find the IProjectArea, given the UUID of a component,
baseline or stream?
Thanks in advance,
Regards,
Sri.

3 answers



permanent link
Srimanth Gunturi (206125) | answered May 01 '08, 8:49 p.m.
JAZZ DEVELOPER
The second question should have been

Is it possible to find the ITeamArea, given the UUID of a component,
baseline or stream?



Srimanth Gunturi wrote:
Hello,
Previously IProcessItemService.findTeamAreas(IContributor,
IProjectAreaHandle, Collection, IProgressMonitor) used to return
correctly all the TeamAreas for a connection - in 1.0 M6a it returns
null. Has the semantics of the API changed, or is the IProjectAreaHandle
parameter required?

Is it possible to find the IProjectArea, given the UUID of a component,
baseline or stream?
Thanks in advance,
Regards,
Sri.

permanent link
Jared Burns (4.5k29) | answered May 05 '08, 1:33 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You should still be able to pass in null for the project area to
retrieve all team areas.

The user editor uses this API to show all teams that a user belongs to.
On the latest code this works, which says that API appears to still be
working as expected.

Also, this API should never return null. It should return an empty
array. In my read of the code, I don't see a path to a null return
value. If you can reproduce this (preferrably, on a recent build),
please file a defect against the Process component.

--
Jared Burns
Jazz Process Team

Srimanth Gunturi wrote:
Hello,
Previously IProcessItemService.findTeamAreas(IContributor,
IProjectAreaHandle, Collection, IProgressMonitor) used to return
correctly all the TeamAreas for a connection - in 1.0 M6a it returns
null. Has the semantics of the API changed, or is the IProjectAreaHandle
parameter required?

permanent link
Srimanth Gunturi (206125) | answered May 07 '08, 3:33 p.m.
JAZZ DEVELOPER
Hello,
I have opened workitem 54886 to track this problem.
Thanks for mentioning about the user editor as even that shows the same
symptoms.
Regards,
Sri.



Jared Burns wrote:
You should still be able to pass in null for the project area to
retrieve all team areas.

The user editor uses this API to show all teams that a user belongs to.
On the latest code this works, which says that API appears to still be
working as expected.

Also, this API should never return null. It should return an empty
array. In my read of the code, I don't see a path to a null return
value. If you can reproduce this (preferrably, on a recent build),
please file a defect against the Process component.

Your answer


Register or to post your answer.