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 Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,179 views 16 10
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