ScriptedFields always returns "Cannot get property 'name' on null object"

Even the simplest example like " as Double". What is going wrong? as Double.PNG

3 answers

1 accepted

0 vote

This is, and will be fixed in the next release.

First of all you should return String value. In this case you return Double. Try + ''

I have tried

  • + '' (returnig a text-field)
  • as Double (returning a number-field)

I get the same error message.

Could you provide JIRA version and ScriptRunner version.

Are it compatible?

JIRA is 7.0.5 (Core) and ScriptRunner is I have installed ScriptRunner from JIRA and was thus assuming that it is compatbile. I am able to use the JQL extended functionality OK.

It seems to be a bug for JIRA 7. I would recommend to create a bug ticket for ScriptRunner plugin

Adaptavist only allows for creating a bug in their tracker when you have a support contract. I do not, I have only purchased the plugin from the marketplace and the "support" -link pointed to this "answers"-section. Could you advise on how to go forward? Thanks.


OK, I found the link to the tracker and created a bug.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

354 views 0 6
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