Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to clone an issue via JIRA CLI

Henry Tan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 20, 2024

Hi, 

I am trying to clone an issue via JIRA CLI but to no avail. It is showing the below errror

Clone of issue DEPLOY-123573 failed. customfield_17180 (IT Services):  IT Services is required.

the options i used is --action cloneIssues --copyAttachments --jql "key=DEPLOY-123573"

Can anyone help on this? Thanks in advance.

1 answer

Suggest an answer

Log in or Sign up to answer
1 vote
Bibek Behera
Community Champion
July 20, 2024

@Henry Tan ,

Welcome to the community!

As the error message says the input is required "IT Services" for the issue to be cloned.

jira --action cloneIssue --issue "SOURCE_ISSUE_KEY" --project "TARGET_PROJECT_KEY" --field customfield_17180="VALUE"

Replace the value with the exact value. 

 

-Bibek

Henry Tan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2024

Hi @Bibek Behera 

Thanks!

it is ok to just update the value but it will be not sustainable. As this is cloning, the expectation is to clone the value from the issue being cloned but that is not the case for this custom field. Is there anywhere i could just pass a variable? I tried original_customfield_17180 but it is also not working

TAGS
AUG Leaders

Atlassian Community Events