/** * Creates a new project milestone. * * @param projectId The ID of the project. * @param milestone The milestone to create. * @return The newly created, de-serialized milestone. * @throws IOException on gitlab api call error */ public GitlabMilestone createMilestone( Serializable projectId, GitlabMilestone milestone) throws IOException { String title = milestone.getTitle(); String description = milestone.getDescription(); Date dateDue = milestone.getDueDate(); Date dateStart = milestone.getStartDate(); return createMilestone(projectId, title, description, dateDue, dateStart); }
/** * Creates a new project milestone. * * @param projectId The ID of the project. * @param milestone The milestone to create. * @return The newly created, de-serialized milestone. * @throws IOException on gitlab api call error */ public GitlabMilestone createMilestone( Serializable projectId, GitlabMilestone milestone) throws IOException { String title = milestone.getTitle(); String description = milestone.getDescription(); Date dateDue = milestone.getDueDate(); Date dateStart = milestone.getStartDate(); return createMilestone(projectId, title, description, dateDue, dateStart); }
/** * Creates a new project milestone. * * @param projectId The ID of the project. * @param milestone The milestone to create. * @return The newly created, de-serialized milestone. * @throws IOException on gitlab api call error */ public GitlabMilestone createMilestone( Serializable projectId, GitlabMilestone milestone) throws IOException { String title = milestone.getTitle(); String description = milestone.getDescription(); Date dateDue = milestone.getDueDate(); Date dateStart = milestone.getStartDate(); return createMilestone(projectId, title, description, dateDue, dateStart); }
/** * Updates an existing project milestone. * * @param projectId The ID of the project. * @param edited The already edited milestone. * @param stateEvent A value used to update the state of the milestone. * (Optional) (activate | close) * @return The updated, de-serialized milestone. * @throws IOException on gitlab api call error */ public GitlabMilestone updateMilestone( Serializable projectId, GitlabMilestone edited, String stateEvent) throws IOException { return updateMilestone(projectId, edited.getId(), edited.getTitle(), edited.getDescription(), edited.getDueDate(), edited.getStartDate(), stateEvent); }
/** * Updates an existing project milestone. * * @param projectId The ID of the project. * @param edited The already edited milestone. * @param stateEvent A value used to update the state of the milestone. * (Optional) (activate | close) * @return The updated, de-serialized milestone. * @throws IOException on gitlab api call error */ public GitlabMilestone updateMilestone( Serializable projectId, GitlabMilestone edited, String stateEvent) throws IOException { return updateMilestone(projectId, edited.getId(), edited.getTitle(), edited.getDescription(), edited.getDueDate(), edited.getStartDate(), stateEvent); }
/** * Updates an existing project milestone. * * @param projectId The ID of the project. * @param edited The already edited milestone. * @param stateEvent A value used to update the state of the milestone. * (Optional) (activate | close) * @return The updated, de-serialized milestone. * @throws IOException on gitlab api call error */ public GitlabMilestone updateMilestone( Serializable projectId, GitlabMilestone edited, String stateEvent) throws IOException { return updateMilestone(projectId, edited.getId(), edited.getTitle(), edited.getDescription(), edited.getDueDate(), edited.getStartDate(), stateEvent); }