Answers to: get workSpace from a changeSet, is possible?https://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possibleHi,
<br />
<br />I need your help. I am doing a operational advisor, and i need from a especific changeSet his workspace associate...
<br />
<br />something like that:
<br />
<br />IWorkSpace=getCurrentWorkSpace(IChangeSet)...
<br />
<br />thanks for all!!!enFri, 15 Feb 2013 04:28:41 -0500Answer by paulinoalhttps://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54405Thanks, applying your logic I have gotten!
<br />
<br />This way:
<br />
<br />IScmService scmService = getService(IScmService.class);
<br />
<br />IChangeSetHandle[] arrayCSH3=scmService.changeSetsInWorkspace(workspacehandle, IChangeSetHandle[] , null, null);
<br />
<br />
<br />
<br />Thanks
<br />
<br />
<br />
<br />
<br /><blockquote quote:1708b2e2ab="gmclemm">Note that &quot;the workspace to which it belongs&quot; is not a well defined
<br />question, because a change-set does not &quot;belong&quot; to any particular
<br />workspace. A change-set can appear in the change-set history of zero or
<br />many workspaces. Given a change-set and given a workspace/stream, you
<br />can ask &quot;is this change set in this particular workspace/stream&quot;, but to
<br />find out &quot;all the workspaces that contain this change set&quot;, you may have
<br />to iterate through all workspaces, asking each one if it contains that
<br />change set in its current history.
<br />
<br />Note: I'm not an RTC-SCM API expert, so although I can tell you what is
<br />logically possibly, I can't tell you the name/sequence of the particular
<br />API calls you would need to make (hopefully someone else on the forum
<br />can provide that level of detail).
<br />
<br />Cheers,
<br />Geoff
<br />
<br />
<br />On 4/26/2011 3:38 AM, paulinoal wrote:
<br /></blockquote><blockquote>Hi Geoffrey,
<br />
<br />First, thank you very much for answering ...
<br />
<br />I try to get the following sequence:
<br />
<br />ChangeSet (I have it) -&gt; the workspace which it belongs-&gt; the
<br />name of the Stream associated with that WS
<br />
<br />Thanks
<br />
<br />
<br />
<br />
<br />gmclemmwrote:
<br />A change set can be in zero, one, or many workspaces.
<br />
<br />Which of the possibly many workspaces were you hoping would be
<br />returned
<br />(or just a random one?).
<br />
<br />Cheers,
<br />Geoff
<br />
<br />On 4/25/2011 10:08 AM, paulinoal wrote:
<br />Hi,
<br />
<br />I need your help. I am doing a operational advisor, and i need from
<br />a
<br />especific changeSet his workspace associate...
<br />
<br />something like that:
<br />
<br />IWorkSpace=getCurrentWorkSpace(IChangeSet)...
<br />
<br />thanks for all!!!
<br /></blockquote>
<br />paulinoalTue, 03 May 2011 12:02:12 -0400https://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54405Answer by gmclemmhttps://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54404Note that &quot;the workspace to which it belongs&quot; is not a well defined <br />question, because a change-set does not &quot;belong&quot; to any particular <br />workspace. A change-set can appear in the change-set history of zero or <br />many workspaces. Given a change-set and given a workspace/stream, you <br />can ask &quot;is this change set in this particular workspace/stream&quot;, but to <br />find out &quot;all the workspaces that contain this change set&quot;, you may have <br />to iterate through all workspaces, asking each one if it contains that <br />change set in its current history.<br /><br />Note: I'm not an RTC-SCM API expert, so although I can tell you what is <br />logically possibly, I can't tell you the name/sequence of the particular <br />API calls you would need to make (hopefully someone else on the forum <br />can provide that level of detail).<br /><br />Cheers,<br />Geoff<br /><br /><br />On 4/26/2011 3:38 AM, paulinoal wrote:<br /><blockquote>Hi Geoffrey,<br /><br />First, thank you very much for answering ...<br /><br />I try to get the following sequence:<br /><br />ChangeSet (I have it) -&gt; the workspace which it belongs-&gt; the<br />name of the Stream associated with that WS<br /><br />Thanks<br /><br /><br /><br /><br />gmclemmwrote:<br />A change set can be in zero, one, or many workspaces.<br /><br />Which of the possibly many workspaces were you hoping would be<br />returned<br />(or just a random one?).<br /><br />Cheers,<br />Geoff<br /><br />On 4/25/2011 10:08 AM, paulinoal wrote:<br />Hi,<br /><br />I need your help. I am doing a operational advisor, and i need from<br />a<br />especific changeSet his workspace associate...<br /><br />something like that:<br /><br />IWorkSpace=getCurrentWorkSpace(IChangeSet)...<br /><br />thanks for all!!!<br /></blockquote><br />gmclemmThu, 28 Apr 2011 15:50:20 -0400https://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54404Answer by paulinoalhttps://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54403Thinking better, it will be nice get the full list of workspaces ...
<br />
<br />thanks againpaulinoalTue, 26 Apr 2011 09:58:06 -0400https://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54403Answer by paulinoalhttps://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54402Hi,
<br />
<br />Let me clarify a little more ...
<br />
<br />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
<br />
<br />I am interested to know the current workspace where is a specifically changeset
<br />
<br />
<br />Thanks
<br />
<br /><blockquote quote:ddd7b24ada="gmclemm">A change set can be in zero, one, or many workspaces.
<br />
<br />Which of the possibly many workspaces were you hoping would be returned
<br />(or just a random one?).
<br />
<br />Cheers,
<br />Geoff
<br />
<br />On 4/25/2011 10:08 AM, paulinoal wrote:
<br /></blockquote><blockquote>Hi,
<br />
<br />I need your help. I am doing a operational advisor, and i need from a
<br />especific changeSet his workspace associate...
<br />
<br />something like that:
<br />
<br />IWorkSpace=getCurrentWorkSpace(IChangeSet)...
<br />
<br />thanks for all!!!
<br /></blockquote>paulinoalFri, 15 Feb 2013 04:28:41 -0500https://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54402Answer by paulinoalhttps://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54401Hi Geoffrey,
<br />
<br />First, thank you very much for answering ...
<br />
<br />I try to get the following sequence:
<br />
<br />ChangeSet (I have it) -&gt; the workspace which it belongs-&gt; the name of the Stream associated with that WS
<br />
<br />Thanks
<br />
<br />
<br />
<br />
<br /><blockquote quote:be10b25bbf="gmclemm">A change set can be in zero, one, or many workspaces.
<br />
<br />Which of the possibly many workspaces were you hoping would be returned
<br />(or just a random one?).
<br />
<br />Cheers,
<br />Geoff
<br />
<br />On 4/25/2011 10:08 AM, paulinoal wrote:
<br /></blockquote><blockquote>Hi,
<br />
<br />I need your help. I am doing a operational advisor, and i need from a
<br />especific changeSet his workspace associate...
<br />
<br />something like that:
<br />
<br />IWorkSpace=getCurrentWorkSpace(IChangeSet)...
<br />
<br />thanks for all!!!
<br /></blockquote>paulinoalTue, 26 Apr 2011 03:29:18 -0400https://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54401Answer by gmclemmhttps://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54400A change set can be in zero, one, or many workspaces.<br /><br />Which of the possibly many workspaces were you hoping would be returned <br />(or just a random one?).<br /><br />Cheers,<br />Geoff<br /><br />On 4/25/2011 10:08 AM, paulinoal wrote:<br /><blockquote>Hi,<br /><br />I need your help. I am doing a operational advisor, and i need from a<br />especific changeSet his workspace associate...<br /><br />something like that:<br /><br />IWorkSpace=getCurrentWorkSpace(IChangeSet)...<br /><br />thanks for all!!!<br /></blockquote>gmclemmMon, 25 Apr 2011 17:33:38 -0400https://jazz.net/forum/questions/54399/get-workspace-from-a-changeset-is-possible/54400