Hello,
JIRA Version: 7.3.2
ScriptRunner Version: 4.3.18
I am currently unable to delete issues on the JIRA test server as the title suggests. I get the following error:
groovy.lang.MissingPropertyException: No such property: cannedScript for class: com.onresolve.scriptrunner.customfield.CustomFieldConfiguration
Then a huge bunch of text I can't fit in here because of the character limit. But I can post screenshots of it if requested.
I'm not entirely sure the cause of it, but here are the things leading up to that error:
Implemented a custom post function script on Script Runner
The script is placed on Create transition of the workflow.
What it does is:
- When the assignee field is null, we will set current user as Reporter
else,
- Set "Tester Assignee" custom field as Reporter
Did a Refresh from Production
I think the post-functions are a red-herring as the workflow has nothing to do with the process of deleting issues, barring a permission check on the status properties.
Do you have any scripted listeners?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, we have it to listen for any issue updated. Then narrow down to 2 criteria being met, assignee and fix version is updated and then automatically transition (only within a certain status). Although thia does not cause any problems in our production server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, just to rule it out, could you add a single line of "exit" to the top of that script, then try a delete issue again? (Remove the line after this test, of course)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry I have minimal knowledge on scripting, but when I type in "exit", it says "The variable [exit] is undeclared.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are just putting in the single word "exit", alone on the first line, no quotes or anything?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have added "exit" (with quotes) to the top of all the "fast-track transition an issue" condition scripts, and custom scripts for all the listeners. Still getting the same error message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Argh. please remove the quotes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I remove the quotes, I get the "The variable [exit] is undeclared." message. Unless that's not what you meant :O
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First thing that I would try, is to completely remove the post function script and see if you are able then to delete issues then.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.