Hi!
So, I needed to write a script in the post function that will delete linked issues when the main issue goes into the Rejected status. And only those linked issues that are on the Open and To Do statuses are deleted.
I managed to write it, and now there is a problem. When the main issue goes to the Rejected status, this error appears
com.atlassian.jira.index.IndexingFailureException: Indexing completed with 2 errors
Tell me please, where did I go wrong?