where to host groovy script on jira server?

I have a groovy script that is running fine in script console of script runner in jira.How do i convert this script to a groovy file and host it on jira server to use it in workflow transitions?work flow transitions only take script file path.

1 answer

1 vote
Timothy Chin Community Champion Mar 04, 2014

Save it as a .groovy and put it in a location where the user runining JIRA can access it.

Hello I have the same problem. Can you please suggest what should be this location on JIRA server where I should keep my .grrovy file and what all settings are required to run it using /usr/bin/groovy myFile.groovy. My script is not recognizing JIRA classes: Error: myFile.groovy: 2: unable to resolve class com.atlassian.jira.issue.ModifiedValue @ line 2, column 1. import com.atlassian.jira.issue.ModifiedValue myFile.groovy: 14: unable to resolve class com.atlassian.mail.server.MailServerManager @ line 14, column 1. import com.atlassian.mail.server.MailServerManager

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,368 views 15 19
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