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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.