How can I add a file from one component to another
Hi I have a situation where I want to add a file that is already in one component to another component.
For example, currently I have component 1I want to add "reallyfulfile" (same object, preserving history) to component 2 as well so we have. component 1Is that possible at all? |
2 answers
No, unfortunately you can't copy the object and have the object history at both locations. You can only move objects and retain history.
Comments
Lewis Tsao
commented Jul 08 '15, 12:20 p.m.
OK, I suppose I have 2 supplementary questions:
DJ Houghton
commented Jul 08 '15, 1:46 p.m.
| edited Jul 08 '15, 2:14 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
1). My apologies - I looked into it further and you can move Eclipse projects across components and retain history (right-click on the project in the Package Explorer and choose Team -> Move in Repository Workspace...) but you cannot move individual files.
|
Geoffrey Clemm (30.1k●3●30●35)
| answered Jul 08 '15, 2:11 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
In order to make the same file appear in 2 different components, you would "move" the file from the one component to the other. This will create 2 change sets ... one in the source component (deleting the file) and the other in the target component (creating the file). If you want to have the file appear in both components, you would discard the change set that deleted the file in the source component.
But be fore-warned ... a change set lives in exactly one component, and cannot be moved to another component. Starting in 6.0, you are given the option of creating a "clone" of a change set in another component, which effectively lets you apply that change from the pre-move component to the post-move component, but I personally recommend that only an expert user should attempt this magic (:-). |
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.