As a user I wish to copy certain issue items between issues in the same manner as the cloneIssue action.
Implement a Jira CLI action named copyIssue where the action copies the complete set of specified issue items (excluding fields) from a source issue to a target issue.
This may be implemented in the same manner as cloneIssue with the following changes:
Additional required parameter: toIssue (issue to which to copy the items from the source issue)
Exclude optional parameters: propertyPrefix, toProject, parent, fieldExclude, useParentVersions, parent, summary, issueType, reporter, components, description, fixVersions, priority, labels, link, assignee, comment, affectsVersions, environment, resolution, field, dateFormat, findReplace, findReplaceRegex, encoding
Add optional parameter: suppressNotify
Help text updates:
Description: "Copy items from one issue to another. If the issue is a subtask, the parent issue will not be copied to the target issue.
Replace text "when cloning an issue" with "to another issue" for parameters copyLinks, copyAttachments, copyComments, copyWatchers, copySubtasks, copyEstimates, and copySubtaskEstimates.
--action copyIssue --issue "XXXX-1" --toIssue "XXXX-2" --copyEstimates --copySubtasks --copySubtaskEstimates --copyLinks --copyComments --copyWatchers
1 watchers copied to XXXX-5.
Issues XXXX-6 and XXXX-1 linked with type 'is related to'.
1 links copied to XXXX-6.
1 watchers copied to XXXX-6.
2 subtasks copied as children of XXXX-4.
2 subtasks estimation copied.
Issues XXXX-4 and XXXX-3 linked with type 'relates to'.
Issues XXXX-4 and XXXX-6 linked with type 'relates to'.
links copied to XXXX-4.
comments copied to XXXX-4.
3 watchers copied to XXXX-4.
Issue XXXX-1 copied to XXXX-4.