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

get workSpace from a changeSet, is possible?

Hi,

I need your help. I am doing a operational advisor, and i need from a especific changeSet his workspace associate...

something like that:

IWorkSpace=getCurrentWorkSpace(IChangeSet)...

thanks for all!!!

0 votes



6 answers

Permanent link
A change set can be in zero, one, or many workspaces.

Which of the possibly many workspaces were you hoping would be returned
(or just a random one?).

Cheers,
Geoff

On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,

I need your help. I am doing a operational advisor, and i need from a
especific changeSet his workspace associate...

something like that:

IWorkSpace=getCurrentWorkSpace(IChangeSet)...

thanks for all!!!

0 votes


Permanent link
Hi Geoffrey,

First, thank you very much for answering ...

I try to get the following sequence:

ChangeSet (I have it) -> the workspace which it belongs-> the name of the Stream associated with that WS

Thanks




A change set can be in zero, one, or many workspaces.

Which of the possibly many workspaces were you hoping would be returned
(or just a random one?).

Cheers,
Geoff

On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,

I need your help. I am doing a operational advisor, and i need from a
especific changeSet his workspace associate...

something like that:

IWorkSpace=getCurrentWorkSpace(IChangeSet)...

thanks for all!!!

0 votes


Permanent link
Hi,

Let me clarify a little more ...

in the case of making a deliver-operation , would be able to get the workspace origin and destination, but as you know is not the operation I'm doing...is advisor op

I am interested to know the current workspace where is a specifically changeset


Thanks

A change set can be in zero, one, or many workspaces.

Which of the possibly many workspaces were you hoping would be returned
(or just a random one?).

Cheers,
Geoff

On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,

I need your help. I am doing a operational advisor, and i need from a
especific changeSet his workspace associate...

something like that:

IWorkSpace=getCurrentWorkSpace(IChangeSet)...

thanks for all!!!

0 votes


Permanent link
Thinking better, it will be nice get the full list of workspaces ...

thanks again

0 votes


Permanent link
Note that "the workspace to which it belongs" is not a well defined
question, because a change-set does not "belong" to any particular
workspace. A change-set can appear in the change-set history of zero or
many workspaces. Given a change-set and given a workspace/stream, you
can ask "is this change set in this particular workspace/stream", but to
find out "all the workspaces that contain this change set", you may have
to iterate through all workspaces, asking each one if it contains that
change set in its current history.

Note: I'm not an RTC-SCM API expert, so although I can tell you what is
logically possibly, I can't tell you the name/sequence of the particular
API calls you would need to make (hopefully someone else on the forum
can provide that level of detail).

Cheers,
Geoff


On 4/26/2011 3:38 AM, paulinoal wrote:
Hi Geoffrey,

First, thank you very much for answering ...

I try to get the following sequence:

ChangeSet (I have it) -> the workspace which it belongs-> the
name of the Stream associated with that WS

Thanks




gmclemmwrote:
A change set can be in zero, one, or many workspaces.

Which of the possibly many workspaces were you hoping would be
returned
(or just a random one?).

Cheers,
Geoff

On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,

I need your help. I am doing a operational advisor, and i need from
a
especific changeSet his workspace associate...

something like that:

IWorkSpace=getCurrentWorkSpace(IChangeSet)...

thanks for all!!!

0 votes


Permanent link
Thanks, applying your logic I have gotten!

This way:

IScmService scmService = getService(IScmService.class);

IChangeSetHandle[] arrayCSH3=scmService.changeSetsInWorkspace(workspacehandle, IChangeSetHandle[] , null, null);



Thanks




Note that "the workspace to which it belongs" is not a well defined
question, because a change-set does not "belong" to any particular
workspace. A change-set can appear in the change-set history of zero or
many workspaces. Given a change-set and given a workspace/stream, you
can ask "is this change set in this particular workspace/stream", but to
find out "all the workspaces that contain this change set", you may have
to iterate through all workspaces, asking each one if it contains that
change set in its current history.

Note: I'm not an RTC-SCM API expert, so although I can tell you what is
logically possibly, I can't tell you the name/sequence of the particular
API calls you would need to make (hopefully someone else on the forum
can provide that level of detail).

Cheers,
Geoff


On 4/26/2011 3:38 AM, paulinoal wrote:
Hi Geoffrey,

First, thank you very much for answering ...

I try to get the following sequence:

ChangeSet (I have it) -> the workspace which it belongs-> the
name of the Stream associated with that WS

Thanks




gmclemmwrote:
A change set can be in zero, one, or many workspaces.

Which of the possibly many workspaces were you hoping would be
returned
(or just a random one?).

Cheers,
Geoff

On 4/25/2011 10:08 AM, paulinoal wrote:
Hi,

I need your help. I am doing a operational advisor, and i need from
a
especific changeSet his workspace associate...

something like that:

IWorkSpace=getCurrentWorkSpace(IChangeSet)...

thanks for all!!!

0 votes

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,952

Question asked: Apr 25 '11, 9:58 a.m.

Question was seen: 8,226 times

Last updated: Feb 15 '13, 9:11 a.m.

Confirmation Cancel Confirm