Scriptrunner 'switch to a different user' fails

On JIRA Software 7.2.2 (and Service Desk 3.2.2), Scriptrunner 4.3.7.

When trying the build in script - Switch to a different user, the script throws an exception:

java.lang.NullPointerException: Cannot invoke method getRemoteUserKey() on null object
at com.onresolve.scriptrunner.canned.common.AbstractSwitchUser.doValidate(AbstractSwitchUser.groovy:51)
at com.onresolve.scriptrunner.canned.CannedScript$doValidate$0.call(Unknown Source)
at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.validateAndRunCannedInternal(ScriptRunnerImpl.groovy:415)
at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.validateForPreview(ScriptRunnerImpl.groovy:365)
at com.onresolve.scriptrunner.runner.rest.AbstractRestEndpoint.previewOrExecCanned(AbstractRestEndpoint.groovy:168)
at com.onresolve.scriptrunner.runner.rest.common.CannedScriptEndpoint.previewCanned(CannedScriptEndpoint.groovy:117)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
... 13 filtered

Anybody that have seen this before?

We have just upgraded to the new JIRA and scriptrunner versions.

2 answers

1 votes

This is a bug in 4.3.7 unfortunately. Please see SRJIRA-2040.

We are looking at fixing this as soon as possible and putting out a new release.

For now you can downgrade to 4.3.6 if this is a problem for you.

1 votes

This has been fixed in 4.3.8 and has been released, or 4.1.3.18 for JIRA 6.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

261 views 0 12
Read article

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