running a groovy script in a jelly script

Jeff Underwood September 4, 2012

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

thank.

1 answer

1 vote
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2012

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.

Jeff Underwood September 5, 2012

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
TAGS
AUG Leaders

Atlassian Community Events