It's all about the answers!

Ask a question

Finding the Jazz server in Team Artifacts Navigator for a Do


Stephen McCants (2676) | asked May 19 '09, 5:08 p.m.
Hi Y'all,
I've extended the Team Artifacts Navigator and added a new Domain. When a user selects one of the
new domain objects they can right click and open a wizard. That wizard needs to know what Jazz
server the domain object is residing on. I can get the team and project areas (through the tree
path), but I can't seem to find the hostname and port for the jazz server. Is there an easy way to
find this information with storing it directly in the domain object itself?
Thanks in advance!

--Stephen

2 answers



permanent link
Stephen McCants (2676) | answered May 21 '09, 6:18 p.m.
Thanks, Patrick!

Patrick Streule wrote:
Hi Y'all,
I've extended the Team Artifacts Navigator and added a new
Domain. When a user selects one of the new domain objects they can
right click and open a wizard. That wizard needs to know what Jazz
server the domain object is residing on. I can get the team and
project areas (through the tree path), but I can't seem to find the
hostname and port for the jazz server. Is there an easy way to find
this information with storing it directly in the domain object itself?
Thanks in advance!

When you have an item handle you can get at the repository it came from
using getOrigin():

IProjectAreaHandle projectArea=...;
ITeamRepository repository= (ITeamRepository) projectArea.getOrigin();

permanent link
Patrick Streule (4.9k21) | answered May 21 '09, 7:08 a.m.
JAZZ DEVELOPER
Hi Y'all,
I've extended the Team Artifacts Navigator and added a new Domain.
When a user selects one of the new domain objects they can right click
and open a wizard. That wizard needs to know what Jazz server the
domain object is residing on. I can get the team and project areas
(through the tree path), but I can't seem to find the hostname and port
for the jazz server. Is there an easy way to find this information with
storing it directly in the domain object itself?
Thanks in advance!

When you have an item handle you can get at the repository it came from
using getOrigin():

IProjectAreaHandle projectArea=...;
ITeamRepository repository= (ITeamRepository) projectArea.getOrigin();

--
Regards,
Patrick
Jazz Work Item Team

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.