Forums

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

copy fields from current issue to new issue

david.umbarger
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!
April 29, 2021

I have a script to create a new issue on a transition and copy the data from certain fields to the newly created issue. The new issue is created as expected, but the fields do not copy.

Here is the part of the script that does not want to work.

/*
copy fields from current issue to new issue
*/

newIssueKey.reporter = currentUser();
newIssueKey.customfield_11000 = customfield_11000;
newIssueKey.fixVersions = fixVersions;

admReindexIssue(newIssueKey);

 

Anyone have any pointers here?

 

 

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
April 29, 2021

Hi @david.umbarger ., 

what is the language? 

Could you share more info please?

Suggest an answer

Log in or Sign up to answer