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 votes
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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,965 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot