Open coltoneakins opened 2 years ago
Hi @coltoneakins, Jira doesn't provide any API to clone the issue. So, the clone command is fetching and re-creating the issue with the most common fields. And, custom fields are not included during this process as this will complicate things a bit. Technically, current clone
command is same as issuing the create
command by passing all parameters manually.
@ankitpokhrel - Based on your experience, would it be 'infeasible' to adjust the command to:
So, it 'seems' like the issue is being cloned?
I haven't worked with Jira's API extensively. So, do you think this approach would work?
It would be nice to have some work done here, since without custom field support I can't even do a clone at all, as I get:
Error:
- customfield_10007: Epic Name is required.
and of course, there's a lot of other custom fields that should be cloned as well.
Describe the bug
As it stands, the
jira clone
command does not really 'clone' issues in the same way Jira actually would. Issue custom fields are not copied over at all (the custom fields listed in.config/.jira/.config.yml
).Part of my .config.yml file:
None of these custom fields are copied over when cloning an issue.
For instance, when cloning issue:
ISSUE-12345
to
ISSUE-12346
The cloned issue does not have custom fields set at all.
Please provide following details
To Reproduce
Steps to reproduce the behavior:
Expected behavior Cloning an issue also clones the values of all custom fields.
Screenshots n/a
Additional context n/a