It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script Runner - Script Console - Samples - Get JIRA Version Edited

Dear Community,

I have a noddy question. I've just installed the script runner and I'm trying to get my head around. When I follow "Get JIRA Version" sample from the documentation ( I get the error below. Can you please guide me about it? Thank you.


.queryString('doHealthCheck', 'true')



groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.get() is applicable for argument types: (java.lang.String) values: [/rest/api/2/serverInfo] Possible solutions: get(java.lang.String), getAt(java.lang.String), grep(), put(java.lang.String, java.lang.Object), grep(java.lang.Object), wait() at


Kind regards,


1 answer

1 accepted

0 votes
Answer accepted

Hello @Onder_Ozcan 

Welcome to the community.

I think you're using Jira Server but you're trying to run Script Runner cloud version code examples.

AFAIK those get, post, put, ... http methods can be used without adding any import statements in script console for cloud version of Script Runner. I'm not good at cloud though.

But in server edition you need to add some REST library imports.

However, if you want to get the version of Jira using script console, you can use below script.

import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.util.BuildUtilsInfo

BuildUtilsInfo buildUtils = ComponentAccessor.getComponent(BuildUtilsInfo.class)
return buildUtils.version

 But, if you need to do it via REST, I can also try to help. 

I hope I was helpful.



Hi @Tuncay_Senturk__Snapbytes_ 

It does do the job. Thank you for your help.



I'm glad that it does the trick ;)

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you