We have a CRM database that stores Full Names. We are required to assign tickets based on these values in CRM.
Hence we have a nFeed field that extracts values from database, and this value is then copied to the 'Assignee' field.
But this does not work as we are trying to copy Full Name to 'Assignee' field.
Any ideas/suggestions to make this work?
No. A user field contains a user object, the same way an assignee does.
It's utter nonsense to use something like the user's given name in a user field. It has to be something that uniquely identifies them. In many cases a given name can do that, but it allows for failures, and hence cannot be used.
For example, imagine a Jira system that my family uses. "Nic" is unique in the family. But when my father-in-law Jim uses it, how does the computer know it is him and not his brother in law, Jim, or his cousin, Jim? Even adding a surname won't solve it - they're Jim Barclay, Jim Dart and Jim Barclay
For a user field to work, it must be able to uniquely identify a user. A full name fails that test.
The best you will be able to do is a text field that asks for a name and then tries to work out who it might be in your list of users, so it can populate assignee with the unique id it requires. But you're going to have to do a lot of thinking and coding around how to deal with duplicate names, misspellings and non-matching entries.
I am trying to use this script but getting errors:
CustomFieldManager customFieldManager = ComponentAccessor.getCustomFieldManager();
def nFeedField = issue.getCustomFieldValue(customFieldManager.getCustomFieldObject("customfield_12345"));
def userPickerSearchService = ComponentAccessor.getComponent(UserPickerSearchService);
def assignee = userPickerSearchService.findUsers("nFeedField);
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG