String (@NotNull CustomTaskState state) { try { switch (Integer.parseInt(state.getId())) { case 4 -> { // In Progress return "{\"transition\": \"4\"}"; } case 5 -> { // Resolved (2 for "Closed") return "{\"transition\": \"5\", \"resolution\": \"Fixed\"}"; } case 3 -> { // Reopened return "{\"transition\": \"3\"}"; } } } catch (NumberFormatException ignored) { } LOG.error("Unknown ID of predefined issue state: " + state.getId()); return null; }