public class EpicsApi 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.TokenType
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
Modifier and Type | Method and Description |
---|---|
EpicIssue |
assignIssue(Object groupIdOrPath,
Integer epicIid,
Integer issueIid)
Creates an epic - issue association.
|
Epic |
createEpic(Object groupIdOrPath,
Epic epic)
Creates a new epic using the information contained in the provided Epic instance.
|
Epic |
createEpic(Object groupIdOrPath,
String title,
String labels,
String description,
Date startDate,
Date endDate)
Creates a new epic.
|
void |
deleteEpic(Object groupIdOrPath,
Integer epicIid)
Deletes an epic.
|
Epic |
getEpic(Object groupIdOrPath,
Integer epicIid)
Get a single epic for the specified group.
|
List<Epic> |
getEpicIssues(Object groupIdOrPath,
Integer epicIid)
Gets all issues that are assigned to an epic and the authenticated user has access to.
|
Pager<Epic> |
getEpicIssues(Object groupIdOrPath,
Integer epicIid,
int itemsPerPage)
Get a Pager of all issues that are assigned to an epic and the authenticated user has access to.
|
List<Epic> |
getEpicIssues(Object groupIdOrPath,
Integer epicIid,
int page,
int perPage)
Gets all issues that are assigned to an epic and the authenticated user has access to
using the specified page and per page setting.
|
Stream<Epic> |
getEpicIssuesStream(Object groupIdOrPath,
Integer epicIid)
Gets all issues that are assigned to an epic and the authenticated user has access to as a Stream.
|
List<Epic> |
getEpics(Object groupIdOrPath)
Gets all epics of the requested group and its subgroups.
|
Pager<Epic> |
getEpics(Object groupIdOrPath,
int itemsPerPage)
Get a Pager of all epics of the requested group and its subgroups.
|
List<Epic> |
getEpics(Object groupIdOrPath,
Integer authorId,
String labels,
Constants.EpicOrderBy orderBy,
Constants.SortOrder sortOrder,
String search)
Gets all epics of the requested group and its subgroups.
|
Pager<Epic> |
getEpics(Object groupIdOrPath,
Integer authorId,
String labels,
Constants.EpicOrderBy orderBy,
Constants.SortOrder sortOrder,
String search,
int itemsPerPage)
Get a Pager of all epics of the requested group and its subgroups.
|
List<Epic> |
getEpics(Object groupIdOrPath,
Integer authorId,
String labels,
Constants.EpicOrderBy orderBy,
Constants.SortOrder sortOrder,
String search,
int page,
int perPage)
Gets all epics of the requested group and its subgroups using the specified page and per page setting.
|
List<Epic> |
getEpics(Object groupIdOrPath,
int page,
int perPage)
Gets all epics of the requested group and its subgroups using the specified page and per page setting.
|
Stream<Epic> |
getEpicsStream(Object groupIdOrPath)
Gets all epics of the requested group and its subgroups as a Stream.
|
Stream<Epic> |
getEpicsStream(Object groupIdOrPath,
Integer authorId,
String labels,
Constants.EpicOrderBy orderBy,
Constants.SortOrder sortOrder,
String search)
Gets all epics of the requested group and its subgroups as a Stream.
|
Optional<Epic> |
getOptionalEpic(Object groupIdOrPath,
Integer epicIid)
Get an Optional instance with the value for the specific Epic.
|
EpicIssue |
removeIssue(Object groupIdOrPath,
Integer epicIid,
Integer issueIid)
Remove an epic - issue association.
|
Epic |
updateEpic(Object groupIdOrPath,
Integer epicIid,
Epic epic)
Updates an epic using the information contained in the provided Epic instance.
|
Epic |
updateEpic(Object groupIdOrPath,
Integer epicIid,
String title,
String labels,
String description,
Date startDate,
Date endDate)
Updates an existing epic.
|
EpicIssue |
updateIssue(Object groupIdOrPath,
Integer epicIid,
Integer issueIid,
Integer moveBeforeId,
Integer moveAfterId)
Updates an epic - issue association.
|
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, validate
public EpicsApi(GitLabApi gitLabApi)
public List<Epic> getEpics(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic List<Epic> getEpics(Object groupIdOrPath, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathpage
- the page to getperPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Pager<Epic> getEpics(Object groupIdOrPath, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathitemsPerPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Stream<Epic> getEpicsStream(Object groupIdOrPath) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathGitLabApiException
- if any exception occurspublic List<Epic> getEpics(Object groupIdOrPath, Integer authorId, String labels, Constants.EpicOrderBy orderBy, Constants.SortOrder sortOrder, String search) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathauthorId
- returns epics created by the given user idlabels
- return epics matching a comma separated list of labels names.
Label names from the epic group or a parent group can be usedorderBy
- return epics ordered by CREATED_AT or UPDATED_AT. Default is CREATED_ATsortOrder
- return epics sorted in ASC or DESC order. Default is DESCsearch
- search epics against their title and descriptionGitLabApiException
- if any exception occurspublic List<Epic> getEpics(Object groupIdOrPath, Integer authorId, String labels, Constants.EpicOrderBy orderBy, Constants.SortOrder sortOrder, String search, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathauthorId
- returns epics created by the given user idlabels
- return epics matching a comma separated list of labels names
Label names from the epic group or a parent group can be usedorderBy
- return epics ordered by CREATED_AT or UPDATED_AT. Default is CREATED_ATsortOrder
- return epics sorted in ASC or DESC order. Default is DESCsearch
- search epics against their title and descriptionpage
- the page to getperPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Pager<Epic> getEpics(Object groupIdOrPath, Integer authorId, String labels, Constants.EpicOrderBy orderBy, Constants.SortOrder sortOrder, String search, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathauthorId
- returns epics created by the given user idlabels
- return epics matching a comma separated list of labels names.
Label names from the epic group or a parent group can be useditemsPerPage
- the number of issues per pageorderBy
- return epics ordered by CREATED_AT or UPDATED_AT. Default is CREATED_ATsortOrder
- return epics sorted in ASC or DESC order. Default is DESCsearch
- search epics against their title and descriptionGitLabApiException
- if any exception occurspublic Stream<Epic> getEpicsStream(Object groupIdOrPath, Integer authorId, String labels, Constants.EpicOrderBy orderBy, Constants.SortOrder sortOrder, String search) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathauthorId
- returns epics created by the given user idlabels
- return epics matching a comma separated list of labels names.
Label names from the epic group or a parent group can be usedorderBy
- return epics ordered by CREATED_AT or UPDATED_AT. Default is CREATED_ATsortOrder
- return epics sorted in ASC or DESC order. Default is DESCsearch
- search epics against their title and descriptionGitLabApiException
- if any exception occurspublic Epic getEpic(Object groupIdOrPath, Integer epicIid) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to getGitLabApiException
- if any exception occurspublic Optional<Epic> getOptionalEpic(Object groupIdOrPath, Integer epicIid)
GitLab Endpoint: GET /groups/:id/epics/:epic_iid
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to getpublic Epic createEpic(Object groupIdOrPath, String title, String labels, String description, Date startDate, Date endDate) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathtitle
- the title of the epic (required)labels
- comma separated list of labels (optional)description
- the description of the epic (optional)startDate
- the start date of the epic (optional)endDate
- the end date of the epic (optional)GitLabApiException
- if any exception occurspublic Epic createEpic(Object groupIdOrPath, Epic epic) throws GitLabApiException
title - the title of the epic (required)
labels - comma separated list of labels (optional)
description - the description of the epic (optional)
startDate - the start date of the epic (optional)
endDate - the end date of the epic (optional)
GitLab Endpoint: POST /groups/:id/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepic
- the Epic instance with information for the new epicGitLabApiException
- if any exception occurspublic Epic updateEpic(Object groupIdOrPath, Integer epicIid, String title, String labels, String description, Date startDate, Date endDate) throws GitLabApiException
GitLab Endpoint: PUT /groups/:id/epics/:epic_iid
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to updatetitle
- the title of the epic (optional)labels
- comma separated list of labels (optional)description
- the description of the epic (optional)startDate
- the start date of the epic (optional)endDate
- the end date of the epic (optional)GitLabApiException
- if any exception occurspublic Epic updateEpic(Object groupIdOrPath, Integer epicIid, Epic epic) throws GitLabApiException
title - the title of the epic (optional)
labels - comma separated list of labels (optional)
description - the description of the epic (optional)
startDate - the start date of the epic (optional)
endDate - the end date of the epic (optional)
GitLab Endpoint: PUT /groups/:id/epics/:epic_iid
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to updateepic
- the Epic instance with update informationGitLabApiException
- if any exception occurspublic void deleteEpic(Object groupIdOrPath, Integer epicIid) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/epics/:epic_iid
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to deleteGitLabApiException
- if any exception occurspublic List<Epic> getEpicIssues(Object groupIdOrPath, Integer epicIid) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/issues
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to get issues forGitLabApiException
- if any exception occurspublic List<Epic> getEpicIssues(Object groupIdOrPath, Integer epicIid, int page, int perPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/issues
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to get issues forpage
- the page to getperPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Pager<Epic> getEpicIssues(Object groupIdOrPath, Integer epicIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/issues
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to get issues foritemsPerPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Stream<Epic> getEpicIssuesStream(Object groupIdOrPath, Integer epicIid) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/issues
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the IID of the epic to get issues forGitLabApiException
- if any exception occurspublic EpicIssue assignIssue(Object groupIdOrPath, Integer epicIid, Integer issueIid) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/epics/:epic_iid/issues/:issue_id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the Epic IID to assign the issue toissueIid
- the issue IID of the issue to assign to the epicGitLabApiException
- if any exception occurspublic EpicIssue removeIssue(Object groupIdOrPath, Integer epicIid, Integer issueIid) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/epics/:epic_iid/issues/:issue_id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the Epic IID to remove the issue fromissueIid
- the issue IID of the issue to remove from the epicGitLabApiException
- if any exception occurspublic EpicIssue updateIssue(Object groupIdOrPath, Integer epicIid, Integer issueIid, Integer moveBeforeId, Integer moveAfterId) throws GitLabApiException
GitLab Endpoint: PUT /groups/:id/epics/:epic_iid/issues/:issue_id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the Epic IID that the issue is assigned toissueIid
- the issue IID to updatemoveBeforeId
- the ID of the issue - epic association that should be placed before the link in the question (optional)moveAfterId
- the ID of the issue - epic association that should be placed after the link in the question (optional)GitLabApiException
- if any exception occursCopyright © 2019. All rights reserved.