Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to delete an issue in JIRA Test server.

Laurence Wu February 9, 2018

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

3 answers

1 accepted

0 votes
Answer accepted
Laurence Wu March 20, 2018

Seems like updating JIRA fixed the issue. 

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 10, 2018

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?

Laurence Wu February 10, 2018

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. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 10, 2018

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)

Laurence Wu February 12, 2018

Sorry I have minimal knowledge on scripting, but when I type in "exit", it says "The variable [exit] is undeclared. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2018

You are just putting in the single word "exit", alone on the first line, no quotes or anything?

Laurence Wu February 12, 2018

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. 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2018

Argh.  please remove the quotes.

Laurence Wu February 12, 2018

If I remove the quotes, I get the "The variable [exit] is undeclared." message. Unless that's not what you meant :Oerror.PNG

0 votes
Victor Florin Pana
Contributor
February 9, 2018

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.

Laurence Wu February 9, 2018

I tried that, and nothing changed.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events