I would like to copy multiple ALM_Tasks using the Integrity CLI, with a single batch file.
This seems straightforward using
im copyissue --type=ALM_Task <ID>
However, I would like to newly copied items to be associated with a different Change Request, and have a slightly different summary. Experimenting with the commands, it seems that
im copyissue --type=ALM_Task --field=ALM_Work Item For=<New CR> --field=Summary=<New Summary> <ID>
However, other fields are not copied, such as the named reviewer or the planned effort. I can see there are options in the CLI help such as
--copyFields, --copyFieldsList, --addFieldValues
which I have tried to test out, but I can't seem to get the behavior I want.
Is there a straightforward way to simply copy an item, as is, with ALL the current fields? Once I have done this, I could then edit the fields I want as a second command if necessary.
There are a couple things that could be going on:
@awalsh, ok this makes sense.
I think the best approach for me would be to copy the item, using the default fields, and then automatically invoke an
command, to edit the fields to match the original item. If it has to be a two-step process then that is not really a problem I don't think. I just wanted to make sure I wasn't missing a hidden "copyall" option or something...