How to add JIRA service with groovyrunner?

Hi everybody.

i'm trying to add a service with groovyrunner. I'm doing the following steps:

1. Create the script testService.groovy

import org.apache.log4j.Category



log = Category.getInstance("com.onresolve.jira.groovy.example.testService")



log.debug("Service testService script running")

file's absolut path is: /opt/jira/groovyscripts/services/testService.groovy

2. Going to administration section and filling the fields

Name: com.onresolve.jira.groovy.GroovyService

Class: /opt/jira/groovyscripts/services/testService.groovy

3. I'm always getting an error

Class

[/opt/jira/groovyscripts/services/testService.groovy] was not found.

Ensure that you have typed it correctly and it is in the classpath.

I have followed the instructions from documentation and relative questions without luck.

Probably i'm missing something...

Thanx in advance,

Kostas

1 answer

1 accepted

1 vote

The service name is anything you like, use it for your own info.

The class is com.onresolve.jira.groovy.GroovyService.

In the next part of the form you enter the path to the file... testService.groovy in your case.

Thanx Jamie,

my mind was stuck...for an unkown reason i was putting the path in class field

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 Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

468 views 6 11
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