String (@NotNull CustomTaskState state) { assert StringUtil.isNotEmpty(state.getId()); final String stateId = state.getId(); final int index = stateId.indexOf(':'); if (index >= 0) { return "{" + " \"transition\": {\"id\": \"" + stateId.substring(0, index) + "\"}, " + " \"fields\": {\"resolution\": {\"name\": \"" + stateId.substring(index + 1) + "\"}}" + "}"; } else { return "{\"transition\": {\"id\": \"" + stateId + "\"}}"; } }