Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Getting a reference to or instantiate a IProjectAreaHandle o

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

0 votes



12 answers

Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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.

0 votes


Permanent link
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 ?

0 votes

1–15 items
page 1of 1 pagesof 2 pages

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,926

Question asked: May 06 '08, 2:42 p.m.

Question was seen: 12,895 times

Last updated: May 06 '08, 2:42 p.m.

Confirmation Cancel Confirm