scriptrunner copy custom fields wrong filter result

I try to transfer the value of a custom field "Story points_deprecated" to the custom field "Story points". I only want to transfer the value for tickets which not already have a value in the "Story Points" field. I use scriptrunner build in script Copy custom field values. It processes all issues provided by a JQL-filter. I made the filter project = tdh AND "Story points_deprecated" != EMPTY AND "Story Points" = EMPTY and this results in 300 tickets in the issues viewer. However when I use it in scriptrunner the script ends immediately with the message 0 issues modified. The scriptrunner preview stated that 300 issues will be processed. There is nothing in log files.

Anybody a hint to resolve this?

3 answers

1 accepted

Hi Retmer,

Are you able to update to the latest version ? There was a bug that fixed in the latest version (SRJIRA-2095). 

Alternatively add in your filter a clause that will exclude issues where the source custom field has null / no value. 

Are you sure that custom field id were specified correctly?

Thanks, With version 4.3.13 it works correctly

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted 3 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

19 views 0 4
Join discussion

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