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

0 votes
Accepted answer

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
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

254 views 6 0
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