Hi folks,
I have a tough issue here and need some assistance coming up with a solution.
Background
Jira Software 8.2.0
Adaptavist ScriptRunner 5.5.8.1-jira8
I have an inherited Jira Software instance that I have been slowly working on cleaning up, as it outgrew its original purpose long ago.
One of my projects has a Single Select List custom field named TTS Approver. It contains a text list users that can approve issues in the TTS project. I'm trying to get rid of this Single Select List in favor of a new Single User Picker custom field, which will be much easier to manage. Let's call it newApprover for now.
Creating the newApprover field is easy enough, and I've added it to the relevant screens in my test environment. The problem I face now is replacing the old TTS Approver information in existing issues (both resolved and unresolved) with this new field. I will then remove the old field from the screens and rename newApprover as TTS Approver. I'm looking at about 35,000 issues in this project alone.
Problem
I thought I could use ScriptRunner's built-in script Copy custom field values to simply copy the value from TTS Approver to newApprover, but this does not work with User Picker custom fields.
Does anyone know a way to script this such that the text value in TTS Approver = the name property of the newApprover user field, and thus the correct user will be populated in the field?
It is not recorded.
This is why you should have only a few administrators, and a change control process for managing Jira (most of us use a Jira project for this). Then you'll know who did it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.