I added a status to a draft workflow. Before publishing the workflow, that status was deleted. Now the status cannot be removed from the workflow.
Error message when trying to delete: The Jira server was contacted but has returned an error response. We are unsure of the result of this operation.
First few lines of 375 line long stacktrace in error response:
java.lang.NullPointerException
at com.atlassian.jira.plugins.workflowdesigner.workflow.WorkflowStatuses.verifyStatusCanBeRemoved(WorkflowStatuses.java:269)
at com.atlassian.jira.plugins.workflowdesigner.workflow.WorkflowStatuses.removeStatus(WorkflowStatuses.java:160)
at com.atlassian.jira.plugins.workflowdesigner.rest.WorkflowStatusesResource.removeStatus(WorkflowStatusesResource.java:88)
...
It feels like a bug, but is there a workaround that can be done to remove the deleted status?