Scriptrunner field validation exception - user not found in system

Hi guys - I've got a weird issue that has occurred with users whose accounts have been previously deleted, then have rejoined the company (where we used to delete accounts, rather than deactivate them back in JIra 4 days)

 

A particular user on the helpdesk keeps having this error thrown whenever scriptrunner listener triggers on an event:

2017-05-23 03:34:29,677 http-bio-443-exec-1858 ERROR helpdesk.user@s-a-m.com 214x541268x2 1vjatkb 10.54.66.123 /rest/api/2/issue/INC-42126/comment [c.o.scriptrunner.runner.AbstractScriptListener] *************************************************************************************
2017-05-23 03:34:29,677 http-bio-443-exec-1858 ERROR helpdesk.user@s-a-m.com 214x541268x2 1vjatkb 10.54.66.123 /rest/api/2/issue/INC-42126/comment [c.o.scriptrunner.runner.AbstractScriptListener] Script function failed on event: com.atlassian.jira.event.issue.IssueEvent, file: <inline script>
com.atlassian.jira.exception.DataAccessException: com.atlassian.jira.issue.customfields.impl.FieldValidationException: User 'helpdesk user' was not found in the system.
	at com.atlassian.jira.issue.fields.CustomFieldImpl.updateIssue(CustomFieldImpl.java:1078)
	at com.atlassian.jira.bc.issue.DefaultIssueService.updateIssueFromFieldsWithoutScreenCheck(DefaultIssueService.java:702)
	at com.atlassian.jira.bc.issue.DefaultIssueService.updateIssueFromFields(DefaultIssueService.java:661)
	at com.atlassian.jira.bc.issue.DefaultIssueService.validateAndUpdateIssueFromFields(DefaultIssueService.java:557)
	at com.atlassian.jira.bc.issue.DefaultIssueService.validateUpdate(DefaultIssueService.java:229)
	at com.atlassian.jira.bc.issue.IssueService$validateUpdate.call(Unknown Source)
	at Script12.run(Script12.groovy:282)
Caused by: com.atlassian.jira.issue.customfields.impl.FieldValidationException: User 'helpdesk user' was not found in the system.
	at com.atlassian.jira.issue.customfields.converters.UserConverterImpl.getUser(UserConverterImpl.java:50)
	at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:30)
	at com.sun.proxy.$Proxy389.getUser(Unknown Source)
	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:161)
	at com.sun.proxy.$Proxy389.getUser(Unknown Source)
	at com.atlassian.jira.issue.customfields.impl.CalculatedCFType.getValueFromCustomFieldParams(CalculatedCFType.java:65)
	at com.atlassian.jira.issue.fields.CustomFieldImpl.updateIssue(CustomFieldImpl.java:1074)
	... 6 more

 

 

The username is actually his email address.  Any ideas?

1 answer

Hi Scott, 

Do you use a custom listener or one of the Script Runner built in ? 

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,321 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot