All custom JQL scripts are deleted after adding custom script
I would like to create a custom JQL script. So I've done:
1. I've created a file "newScript.groovy"
2. Then I've pasted "newScript.groovy" file into home directory:
C:\Program Files\Atlassian\Application Data\JIRA\scripts
3. Clicked a `scan` button at the `JQL Functions` tab:
4. After clicking a `scan` button, no new script such as "newScript.groovy" is added
5. I started googling as new script is NOT added. And the next link was found
https://community.atlassian.com/t5/Marketplace-Apps-questions/What-is-the-path-for-a-Scripted-JQL-Function-groovy-script/qaq-p/850587
So I've decided to change address
C:\Program Files\Atlassian\Application Data\JIRA\scripts\com\onresolve\jira\groovy\jql\
6. And then all scripts are removed:
My question are
1. What is correct address to paste a file "newScript.groovy"?
2. How is it possible to restore all JQL custom scrips?
I haven't worked with a windows installation, but that location seems right.
I would guess that your new script is breaking something and it's stopping all the other functions from loading.
Try removing your script then re-scanning. I believe the other custom JQL will return.
Then, review your atlassian-jira.log for errors around the time that you attempted to load your custom script.
I disabled ScriptRunner and then enabled ScriptRunner and all JQL scripts are returned. Thanks! However, it is really interesting where to put custom scripts without losing existing scripts.
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.