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

How would you import classes in a script runner groovy script?

Haani Niyaz Aug 13, 2014

Normally you could just peform an

import someClassName

and the groovy script will import the class (assmuming its all in the current dir).

However, how would I accomplish this when the script is run via the groovy script runner?

1 answer

1 accepted

0 votes
Answer accepted
Aleksei Rjeutski Aug 14, 2014

what is the difference? the same way, in the beginning of the script. Doesn't it work for you? do you have some errors?

Haani Niyaz Aug 17, 2014

I encounter something along the lines of

noMethodError

however if i use the class in the same file, it works.

Aleksei Rjeutski Aug 17, 2014

Please give more context and some non-working sample code

Haani Niyaz Aug 18, 2014

Thanks for the assistance but it appears to be working now. I'm unsure what I did differently from the first time I tested it.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

2,378 views 6 15
Read article

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