Forums

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

Groovy script created corrupted issue link that can't be deleted

Matt Whitaker March 17, 2020

Hello,

 

On my Jira instance someone has created a script to link issues automatically. This was a listener that didn't handle the fact that an issue could be deleted. After fixing this problem the issues that had tired to be deleted are now stuck in a state that the issue nor the issue link can be deleted. Apart from trying to go into the database to try and find this issue is there any way to force delete the issue. 

Things I have tried:

  • Deleting the issue link though the Java API
  • Deleting the ticket though the Java API
  • Deleting the ticket though the REST API
  • Deleting the Link Type

All of these have come with a big hang time and eventually error. 

 

Thanks in advance.

1 answer

1 accepted

0 votes
Answer accepted
sukkeong
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.
March 17, 2020

If you have access to the application logs, it can help with determining what went wrong. If the action was unsuccessful or causing an error.

Additionally, try

  1. Performing a system re-index
  2. Deleting the issues or issue link through the application instead.
Matt Whitaker March 18, 2020

Hi,

Thanks for the response I have access the script runner versions ( the built in script that shows the output of some of the jira logs) this isn’t really showing any problems... I have tried your second option the api stuff was trying to work around not being able to do it in the application. I will try a full reindex rather than a project one to see if this works.

 

Many Thanks for the suggestions

sukkeong
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.
March 18, 2020

If system re-index did not help, try performing integrity check
Administration > System > Integrity checker

Like Will C likes this

Suggest an answer

Log in or Sign up to answer