Hello,
I managed to have a status with an non-existing id in my Jira DC environment
How? I imported one workflow, from an xml file, from a different test environment, and forgot about the ids 
The problem is that I realized that this has happened after I linked this workflow to a scheme/issueType/project...
Now, whenever I want to change the workflow for that issueType I get an error.
I runed an integrity check, but did not find my problem.
How can I remove those wrong statuses?
Thank you,
Anca