public class MilestonesApi extends AbstractApi
Constants.ActionType, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenTypeNEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER| Constructor and Description |
|---|
MilestonesApi(GitLabApi gitLabApi) |
| Modifier and Type | Method and Description |
|---|---|
Milestone |
activateMilestone(Integer projectId,
Integer milestoneId)
Activate a milestone.
|
Milestone |
closeMilestone(Integer projectId,
Integer milestoneId)
Close a milestone.
|
Milestone |
createMilestone(Integer projectId,
String title,
String description,
Date dueDate,
Date startDate)
Create a milestone.
|
List<Issue> |
getIssues(Integer projectId,
Integer milestoneId)
Get the list of issues associated with the specified milestone.
|
List<MergeRequest> |
getMergeRequest(Integer projectId,
Integer milestoneId)
Get the list of merge requests associated with the specified milestone.
|
Milestone |
getMilestone(Integer projectId,
int milestoneId)
Get the specified milestone.
|
List<Milestone> |
getMilestones(Integer projectId)
Get a list of project milestones.
|
List<Milestone> |
getMilestones(Integer projectId,
Constants.MilestoneState state)
Get a list of project milestones that have the specified state.
|
List<Milestone> |
getMilestones(Integer projectId,
Constants.MilestoneState state,
String search)
Get a list of project milestones that have the specified state and match the search string.
|
List<Milestone> |
getMilestones(Integer projectId,
int page,
int perPage)
Get a list of project milestones.
|
List<Milestone> |
getMilestones(Integer projectId,
String search)
Get a list of project milestones that have match the search string.
|
Milestone |
updateMilestone(Integer projectId,
Integer milestoneId,
String title,
String description,
Date dueDate,
Date startDate,
Constants.MilestoneState milestoneState)
Update the specified milestone.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, putUpload, putUpload, putWithFormData, upload, upload, urlEncode, validatepublic MilestonesApi(GitLabApi gitLabApi)
public List<Milestone> getMilestones(Integer projectId) throws GitLabApiException
projectId - the project ID to get the milestones forGitLabApiException - if any exception occurspublic List<Milestone> getMilestones(Integer projectId, int page, int perPage) throws GitLabApiException
projectId - the project ID to get the milestones forpage - the page number to getperPage - how many milestones per pageGitLabApiException - if any exception occurspublic List<Milestone> getMilestones(Integer projectId, Constants.MilestoneState state) throws GitLabApiException
projectId - the project ID to get the milestones forstate - the milestone stateGitLabApiException - if any exception occurspublic List<Milestone> getMilestones(Integer projectId, String search) throws GitLabApiException
projectId - the project ID to get the milestones forsearch - the search stringGitLabApiException - if any exception occurspublic List<Milestone> getMilestones(Integer projectId, Constants.MilestoneState state, String search) throws GitLabApiException
projectId - the project ID to get the milestones forstate - the milestone statesearch - the search stringGitLabApiException - if any exception occurspublic Milestone getMilestone(Integer projectId, int milestoneId) throws GitLabApiException
projectId - the project ID to get the milestone formilestoneId - the ID of the milestone tp getGitLabApiException - if any exception occurspublic List<Issue> getIssues(Integer projectId, Integer milestoneId) throws GitLabApiException
projectId - the project ID to get the milestone issues formilestoneId - the milestone ID to get the issues forGitLabApiException - if any exception occurspublic List<MergeRequest> getMergeRequest(Integer projectId, Integer milestoneId) throws GitLabApiException
projectId - the project ID to get the milestone merge requests formilestoneId - the milestone ID to get the merge requests forGitLabApiException - if any exception occurspublic Milestone createMilestone(Integer projectId, String title, String description, Date dueDate, Date startDate) throws GitLabApiException
projectId - the project ID to create a milestone fortitle - the title for the milestonedescription - the description for the milestonedueDate - the due date for the milestonestartDate - the start date for the milestoneGitLabApiException - if any exception occurspublic Milestone closeMilestone(Integer projectId, Integer milestoneId) throws GitLabApiException
projectId - the project ID of the milestonemilestoneId - the milestone ID to closeGitLabApiException - if any exception occurspublic Milestone activateMilestone(Integer projectId, Integer milestoneId) throws GitLabApiException
projectId - the project ID of the milestonemilestoneId - the milestone ID to activateGitLabApiException - if any exception occurspublic Milestone updateMilestone(Integer projectId, Integer milestoneId, String title, String description, Date dueDate, Date startDate, Constants.MilestoneState milestoneState) throws GitLabApiException
projectId - the project ID of the milestonemilestoneId - the milestone ID to updatetitle - the updated title for the milestonedescription - the updated description for the milestonedueDate - the updated due date for the milestonestartDate - the updated start date for the milestonemilestoneState - the updated milestone stateGitLabApiException - if any exception occursCopyright © 2018. All rights reserved.