running a groovy script in a jelly script

Is it possible to run a groovy script within a jelly script?

thank.

1 answer

1 vote

The first question I'd ask is why on earth you wanted to do that.

Technically you can run any code with jelly, it's just a case of laboriously working out all the objects you need and the methods to call on them, and then using a syntax that would make you tear your hair out. So technically yes, you can get the ScriptManager instance and run a groovy script.

If you explained why you wanted to do this I could probably give some more targeted advice.

my first thought was i wanted to run it as a service. I saw "run jelly script" as a built in option. I actually found something you wrote i think that offers up this class:

com.onresolve.jira.groovy.GroovyService
My initial solution was, since i don't know jelly, was to figure out how to run the groovy script within jelly. With the above class, I don't need to. I hope that explains the odd request.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

184 views 0 4
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