I created a new Custom REST endpoint, and entered the location of my script file. My script file is located in a sub-folder of my scripts root folder, and I use a relative path to my scripts root. Type checking says the file can be found, and I can save the custom endpoint. But when running the REST call, I get an error: when looking the error I see it tries to find my script under the scripts root, NOT under the relative path I entered.
Is this a Bug ? A known limitation ?
When I put the script file directly under the script root folder (and just give the name of the script in the Custom REST Endpoint screen), evrything goes fine! My REST Endpoint is saved and the REST call is working correctly...
The package declaration needs to be correct - if not there should be an error logged.
So if you have script foo/bar/thing.groovy it needs to begin:
package foo.bar // etc
Hi Jamie,
Oups, indeed, thats the problem. I must have seen this by myself :-(
Thanks for you reply.
@Daniel, thanks for your reply too :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Marc.
I'm trying to reproduce this, but I haven't been able to. Could you please provide the full error you are getting, your Jira version, and your Scriptrunner version?
Thanks in advance
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.