After importing a workflow and creating a couple of issues I somehow broke my system and I am unable to fix it.
I have two problems, possibly related?
The integrity check fails:
PROBLEM ONE:
Check workflow current step entries
UNFIXABLE ERROR: The issue with key null has a status of CCB which is not a valid status for the issues workflow. (JRA-8326)
UNFIXABLE ERROR: The issue with key null has a status of CCB which is not a valid status for the issues workflow. (JRA-8326)
PROBLEM TWO:
And when I create a sub-task in one of my project I get the following error:

Could someone please advise how this can be resolved?
- Database-type: mssql
- Operating-System: Windows Server 2008 R2 6.1
- System-Encoding: Cp1252
- JIRA (v6.1.5#6160-sha1:a61a0fc)