ankitpokhrel / ankitpokhrel/jira-cli
`clone` command does not clone custom field values
- 主要言語
- Go
- スター
- 6k
- フォーク
- 412
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 1
説明
**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:
```yaml
issue:
fields:
custom:
- name: Story Points
key: customfield_10103
schema:
datatype: number
- name: Stakeholders
key: customfield_13875
schema:
datatype: array
items: option
- name: Epic Link
key: customfield_11405
schema:
datatype: any
- name: Sprint
key: customfield_10801
schema:
datatype: array
items: string
- name: Parent Link
key: customfield_13803
schema:
datatype: any
- name: Epic Name
key: customfield_11407
schema:
datatype: string
```
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**
1. JiraCLI Version:
```
(Version="1.1.0", GitCommit="3b93e147eac468ad985bdece27469153b4bb2814", CommitDate="2022-08-14T08:10:40+00:00", GoVersion="go1.18.3", Compiler="gc", Platform="darwin/arm64")
```
2. Are you using Jira cloud or on-premise jira server? Also mention the version for on-premise installation.
```
Jira on-premise, Jira v8.22.6
```
3. What operating system are you using? Also mention version.
```
macOS Monterey v12.4
```
4. What terminal are you using? Also mention version.
```
Hyper v3.3.0
```
**To Reproduce**
Steps to reproduce the behavior:
1. Setup jira-cli as you normally would
2. Attempt to clone any issue with custom labels
3. Notice that the cloned version of the issue does not have any custom fields set like that in the original issue.
**Expected behavior**
Cloning an issue also clones the values of all custom fields.
**Screenshots**
n/a
**Additional context**
n/a
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。