It's all about the answers!

Ask a question

Getting a reference to or instantiate a IProjectAreaHandle o


Ahmed Hadad (106187) | asked May 06 '08, 2:42 p.m.
How do a get a reference to or instantiate a IProjectAreaHandle object? If
possible, post a sample code showing this.

I have a ITeamRepository object at this point.

Thanks.

--
Sincerely,

Ahmed Hadad

12 answers



permanent link
Jared Burns (4.5k29) | answered May 07 '08, 11:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
If you really just want to instantiate an IProjectAreaHandle, you can do
that via IProjectArea.ITEM_TYPE.createItemHandle(...)

--
Jared Burns
Jazz Process Team

Ahmed Hadad (IBM) wrote:
How do a get a reference to or instantiate a IProjectAreaHandle object?
If possible, post a sample code showing this.

I have a ITeamRepository object at this point.

Thanks.

permanent link
Ahmed Hadad (106187) | answered May 07 '08, 2:49 p.m.
What are the parameters that I need to pass in to the createItemHandle(...)
method?

Is there any documentation about the client APIs, event if it is a draft?

Thanks a lot.

--
Sincerely,

Ahmed Hadad

"Jared Burns" <jared_burns> wrote in message
news:fvsism$ngr$1@localhost.localdomain...
If you really just want to instantiate an IProjectAreaHandle, you can do
that via IProjectArea.ITEM_TYPE.createItemHandle(...)

--
Jared Burns
Jazz Process Team

Ahmed Hadad (IBM) wrote:
How do a get a reference to or instantiate a IProjectAreaHandle object?
If possible, post a sample code showing this.

I have a ITeamRepository object at this point.

Thanks.

permanent link
Kai-Uwe Maetzel (85611) | answered May 07 '08, 3:32 p.m.
JAZZ DEVELOPER
Can you give us a bit more context information? What do you try to
achieve? Without additional information it is hard to give a reasonable
answer.

Thanks, Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
How do a get a reference to or instantiate a IProjectAreaHandle object?
If possible, post a sample code showing this.

I have a ITeamRepository object at this point.

Thanks.

permanent link
Ahmed Hadad (106187) | answered May 07 '08, 3:37 p.m.
I am writing an external application that will interact with Jazz by means
of the Jazz APIs. The application will not be running in the Jazz
environment. My application will be migrating defects (workitem) from other
problem tracking systems (Bugzilla, CMVC, CQ and so on) into Jazz. I have
accomplish the login operation, and I have ITeamRepository object. I need to
get a handle to the IProjectAreaHandle to create workitems there.

From parrym,

Specifically Ahmed is trying to migrate CMVC Defects to Jazz workitems
using the Item Connector APIs. The architecture is similar in nature
to the CQ Gateway, only this is a straight jazz application and not
implemented with OSGi bundles.

--
Sincerely,

Ahmed Hadad

"Kai-Uwe Maetzel" <kai> wrote in message
news:fvt04o$te9$1@localhost.localdomain...
Can you give us a bit more context information? What do you try to
achieve? Without additional information it is hard to give a reasonable
answer.

Thanks, Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
How do a get a reference to or instantiate a IProjectAreaHandle object?
If possible, post a sample code showing this.

I have a ITeamRepository object at this point.

Thanks.

permanent link
Kai-Uwe Maetzel (85611) | answered May 07 '08, 3:52 p.m.
JAZZ DEVELOPER
If a jazz server contains multiple project areas, how do you know for
which one you have to create the work items?

Kai

Ahmed Hadad (IBM) wrote:
I am writing an external application that will interact with Jazz by means
of the Jazz APIs. The application will not be running in the Jazz
environment. My application will be migrating defects (workitem) from other
problem tracking systems (Bugzilla, CMVC, CQ and so on) into Jazz. I have
accomplish the login operation, and I have ITeamRepository object. I
need to
get a handle to the IProjectAreaHandle to create workitems there.

From parrym,

Specifically Ahmed is trying to migrate CMVC Defects to Jazz workitems
using the Item Connector APIs. The architecture is similar in nature
to the CQ Gateway, only this is a straight jazz application and not
implemented with OSGi bundles.

permanent link
Ahmed Hadad (106187) | answered May 07 '08, 3:57 p.m.
I will have the name or that identifies the project area at run time.

--
Sincerely,

Ahmed Hadad

"Kai-Uwe Maetzel" <kai> wrote in message
news:fvt18p$tvq$2@localhost.localdomain...
If a jazz server contains multiple project areas, how do you know for
which one you have to create the work items?

Kai

Ahmed Hadad (IBM) wrote:
I am writing an external application that will interact with Jazz by
means
of the Jazz APIs. The application will not be running in the Jazz
environment. My application will be migrating defects (workitem) from
other
problem tracking systems (Bugzilla, CMVC, CQ and so on) into Jazz. I have
accomplish the login operation, and I have ITeamRepository object. I need
to
get a handle to the IProjectAreaHandle to create workitems there.

From parrym,

Specifically Ahmed is trying to migrate CMVC Defects to Jazz workitems
using the Item Connector APIs. The architecture is similar in nature
to the CQ Gateway, only this is a straight jazz application and not
implemented with OSGi bundles.

permanent link
Kai-Uwe Maetzel (85611) | answered May 07 '08, 4:05 p.m.
JAZZ DEVELOPER
Get the process client library (IProcessClientService) and use
'findProcessArea' with a URI that you constructed based on the name.

Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
I will have the name or that identifies the project area at run time.

permanent link
Ahmed Hadad (106187) | answered May 08 '08, 10:58 a.m.
Can you, please, post some sample code? Thanks.

--
Sincerely,

Ahmed Hadad

"Kai-Uwe Maetzel" <kai> wrote in message
news:fvt21v$u8r$1@localhost.localdomain...
Get the process client library (IProcessClientService) and use
'findProcessArea' with a URI that you constructed based on the name.

Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
I will have the name or that identifies the project area at run time.

permanent link
Kai-Uwe Maetzel (85611) | answered May 08 '08, 12:49 p.m.
JAZZ DEVELOPER
IProcessClientService clientService =
teamRepository.getClientLibrary(IProcessClientService.class);

IProcessArea area = (IProjectArea) clientService.findProcessArea(
new URI(areaName),
IProcessItemService.ALL_PROPERTIES,
progressMonitor);

Kai
Jazz Process Team

Ahmed Hadad (IBM) wrote:
Can you, please, post some sample code? Thanks.

permanent link
Ying Chen (261) | answered Jul 17 '08, 6:55 a.m.
JAZZ DEVELOPER
Is there a way to get an IProjectArea without using any items from com.ibm.team.process.client plug-in ?

I am writing code to be delivered on top of a product that is based on Eclipse 3.2, and have narrowed down to a dependency that the team.process.client needs that is conflicting with the packages that I have... org.eclipse.xsd.

Is it possible at all ?

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.