It's all about the answers!

Ask a question

get workSpace from a changeSet, is possible?


Paulino Alonso (381215) | asked Apr 25 '11, 9:58 a.m.
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!!!

6 answers



permanent link
Geoffrey Clemm (30.1k33035) | answered Apr 25 '11, 5:33 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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!!!

permanent link
Paulino Alonso (381215) | answered Apr 26 '11, 3:29 a.m.
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!!!

permanent link
Paulino Alonso (381215) | answered Apr 26 '11, 9:04 a.m.
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!!!

permanent link
Paulino Alonso (381215) | answered Apr 26 '11, 9:58 a.m.
Thinking better, it will be nice get the full list of workspaces ...

thanks again

permanent link
Geoffrey Clemm (30.1k33035) | answered Apr 28 '11, 3:50 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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!!!


permanent link
Paulino Alonso (381215) | answered May 03 '11, 12:02 p.m.
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!!!

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.