I have a script that grabs the value of a text field, which is the user id of the user. For example the text field has a value of 432100. Before the changes for gdpr the script worked great, in fact it still works great for users that were created before the change. Now any user created after the change, the assignee field updates with the numbers but doesn't find the user. The assignee field will just have 432100 - ?. How would I fix this? Please be gentle, I don't really code
Script below:
import com.atlassian.jira.component.ComponentAccessor
// Get required Managers
def customFieldManager = ComponentAccessor.getCustomFieldManager()
// get a pointer to the Implemented By user picker field and its value
def userCf = ComponentAccessor.customFieldManager.getCustomFieldObjects(issue).findByName("Project Lead")
def implUser = issue.getCustomFieldValue(userCf)
// If the Implemented By Field is not null then set the assignee
if(implUser){
issue.assigneeId = implUser
}