TaskState () { // TODO Make state field name configurable String stateName = getCustomFieldStringValue("State"); if (stateName == null) { return null; } if (stateName.equals("Fixed")) { return TaskState.RESOLVED; } try { return TaskState.valueOf(StringUtil.toUpperCase(stateName)); } catch (IllegalArgumentException ignored) { } return TaskState.OTHER; }