script runner built-in script "Copy custom field values" always times out

We're cleaning up our JIRA custom fields (in JIRA 7, on our own server). Part of this is copying values from two separate fields into one amalgamated field of the same type. We need to move values from the old field(s) into the new, and I'm trying to use the script runner "Copy custom field values" built-in script. But every time I try to do so, it returns a timeout error: "Error timeout: No Stack Trace available". The preview says there it identifies 1969 issues, and that doesn't seem exorbitant.

1 answer

From my experience with using these type of Scriptrunner built-in scripts, there is a limit to how many issues it allows you to process at once. I will try to update this answer if I can remember the exact limit, but otherwise I believe it is either 500, 600, or 1000.  As such, you will need to create multiple filters to whittle down your data set of 1969 issues, and then run each of these filters through the same Copy Custom Field Value execution plan (i.e. choose Filter 1, set the source Field ID, set the Target Field ID, Run.  Then repeat with Filter 2). 


To note, there is a default limit of 1000 in JIRA for how many issues you can even view or export at once, but this can be changed.  See this page:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,698 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you