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

This widget could not be displayed.
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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

130 views 1 3
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