public class EpicsApi extends AbstractApi
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.ContributorOrderBy, Constants.DefaultBranchProtectionLevel, Constants.DeploymentOrderBy, Constants.DeploymentStatus, Constants.DeployTokenScope, Constants.Encoding, Constants.EpicOrderBy, Constants.EventScope, Constants.GroupOrderBy, Constants.GroupSearchScope, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestSearchIn, Constants.MergeRequestState, Constants.MilestoneState, Constants.PackageOrderBy, Constants.PackageStatus, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectAccessTokenScope, Constants.ProjectCreationLevel, Constants.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.SubgroupCreationLevel, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
gitLabApi
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 |
---|---|
ChildEpic |
assignChildEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.Long childEpicId)
Creates an association between two epics, designating one as the parent epic and the other as the child epic.
|
EpicIssue |
assignIssue(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.Long issueId)
Creates an epic - issue association.
|
CreatedChildEpic |
createAndAssignChildEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.String title,
java.lang.Boolean confidential)
Creates a new epic and associates it with provided parent epic.
|
Epic |
createEpic(java.lang.Object groupIdOrPath,
Epic epic)
Creates a new epic using the information contained in the provided Epic instance.
|
Epic |
createEpic(java.lang.Object groupIdOrPath,
java.lang.String title,
java.lang.String labels,
java.lang.String description,
java.util.Date startDate,
java.util.Date endDate)
Creates a new epic.
|
RelatedEpicLink |
createRelatedEpicLink(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.Object targetGroupIdOrPath,
java.lang.Long targetEpicIid,
LinkType linkType)
Create a two-way relation between two epics.
|
void |
deleteEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Deletes an epic.
|
RelatedEpicLink |
deleteRelatedEpicLink(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.Long relatedEpicLinkId)
Delete a two-way relation between two epics.
|
java.util.List<ChildEpic> |
getChildEpics(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Gets all child epics of an epic and the authenticated user has access to.
|
Pager<ChildEpic> |
getChildEpics(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
int itemsPerPage)
Get a Pager of all child epics of an epic and the authenticated user has access to.
|
java.util.stream.Stream<ChildEpic> |
getChildEpicsStream(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Gets all child epics of an epic and the authenticated user has access to as a Stream.
|
Epic |
getEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Get a single epic for the specified group.
|
java.util.List<EpicIssue> |
getEpicIssues(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Gets all issues that are assigned to an epic and the authenticated user has access to.
|
Pager<EpicIssue> |
getEpicIssues(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
int itemsPerPage)
Get a Pager of all issues that are assigned to an epic and the authenticated user has access to.
|
java.util.List<EpicIssue> |
getEpicIssues(java.lang.Object groupIdOrPath,
java.lang.Long 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.
|
java.util.stream.Stream<EpicIssue> |
getEpicIssuesStream(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Gets all issues that are assigned to an epic and the authenticated user has access to as a Stream.
|
java.util.List<Epic> |
getEpics(java.lang.Object groupIdOrPath)
Gets all epics of the requested group and its subgroups.
|
java.util.List<Epic> |
getEpics(java.lang.Object groupIdOrPath,
EpicFilter filter)
Gets all epics of the requested group and its subgroups using the specified page and per page setting.
|
Pager<Epic> |
getEpics(java.lang.Object groupIdOrPath,
int itemsPerPage)
Get a Pager of all epics of the requested group and its subgroups.
|
Pager<Epic> |
getEpics(java.lang.Object groupIdOrPath,
int itemsPerPage,
EpicFilter filter)
Gets all epics of the requested group and its subgroups using the specified page and per page setting.
|
java.util.List<Epic> |
getEpics(java.lang.Object groupIdOrPath,
int page,
int perPage)
Gets all epics of the requested group and its subgroups using the specified page and per page setting.
|
java.util.List<Epic> |
getEpics(java.lang.Object groupIdOrPath,
java.lang.Long authorId,
java.lang.String labels,
Constants.EpicOrderBy orderBy,
Constants.SortOrder sortOrder,
java.lang.String search)
Gets all epics of the requested group and its subgroups.
|
Pager<Epic> |
getEpics(java.lang.Object groupIdOrPath,
java.lang.Long authorId,
java.lang.String labels,
Constants.EpicOrderBy orderBy,
Constants.SortOrder sortOrder,
java.lang.String search,
int itemsPerPage)
Get a Pager of all epics of the requested group and its subgroups.
|
java.util.List<Epic> |
getEpics(java.lang.Object groupIdOrPath,
java.lang.Long authorId,
java.lang.String labels,
Constants.EpicOrderBy orderBy,
Constants.SortOrder sortOrder,
java.lang.String search,
int page,
int perPage)
Gets all epics of the requested group and its subgroups using the specified page and per page setting.
|
java.util.stream.Stream<Epic> |
getEpicsStream(java.lang.Object groupIdOrPath)
Gets all epics of the requested group and its subgroups as a Stream.
|
java.util.stream.Stream<Epic> |
getEpicsStream(java.lang.Object groupIdOrPath,
java.lang.Long authorId,
java.lang.String labels,
Constants.EpicOrderBy orderBy,
Constants.SortOrder sortOrder,
java.lang.String search)
Gets all epics of the requested group and its subgroups as a Stream.
|
java.util.Optional<Epic> |
getOptionalEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Get an Optional instance with the value for the specific Epic.
|
java.util.List<RelatedEpic> |
getRelatedEpics(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Gets all linked epics of an epic filtered according to the user authorizations.
|
Pager<RelatedEpic> |
getRelatedEpics(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
int itemsPerPage)
Get a Pager of all linked epics of an epic filtered according to the user authorizations.
|
java.util.stream.Stream<RelatedEpic> |
getRelatedEpicsStream(java.lang.Object groupIdOrPath,
java.lang.Long epicIid)
Gets all linked epics of an epic filtered according to the user authorizations to as a Stream.
|
EpicIssueLink |
removeIssue(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.Long epicIssueId)
Remove an epic - issue association.
|
java.util.List<ChildEpic> |
reOrderChildEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.Long childEpicId,
java.lang.Long moveBeforeId,
java.lang.Long moveAfterId)
Re-order a child epic
|
ChildEpic |
unassignChildEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.Long childEpicId)
Unassigns a child epic from a parent epic.
|
Epic |
updateEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
Epic epic)
Updates an epic using the information contained in the provided Epic instance.
|
Epic |
updateEpic(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.String title,
java.lang.String labels,
java.lang.String description,
java.util.Date startDate,
java.util.Date endDate)
Updates an existing epic.
|
java.util.List<EpicIssue> |
updateIssue(java.lang.Object groupIdOrPath,
java.lang.Long epicIid,
java.lang.Long epicIssueId,
java.lang.Long moveBeforeId,
java.lang.Long moveAfterId)
Updates an epic - issue association.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getLabelIdOrName, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, patch, patch, post, post, post, post, post, put, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, upload, urlEncode, validate
public EpicsApi(GitLabApi gitLabApi)
public java.util.List<Epic> getEpics(java.lang.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 java.util.List<Epic> getEpics(java.lang.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 epics per pageGitLabApiException
- if any exception occurspublic Pager<Epic> getEpics(java.lang.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 epics per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Epic> getEpicsStream(java.lang.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 java.util.List<Epic> getEpics(java.lang.Object groupIdOrPath, java.lang.Long authorId, java.lang.String labels, Constants.EpicOrderBy orderBy, Constants.SortOrder sortOrder, java.lang.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 java.util.List<Epic> getEpics(java.lang.Object groupIdOrPath, java.lang.Long authorId, java.lang.String labels, Constants.EpicOrderBy orderBy, Constants.SortOrder sortOrder, java.lang.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 epics per pageGitLabApiException
- if any exception occurspublic java.util.List<Epic> getEpics(java.lang.Object groupIdOrPath, EpicFilter filter) 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 pathfilter
- epic filterGitLabApiException
- if any exception occurspublic Pager<Epic> getEpics(java.lang.Object groupIdOrPath, java.lang.Long authorId, java.lang.String labels, Constants.EpicOrderBy orderBy, Constants.SortOrder sortOrder, java.lang.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 epics 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 Pager<Epic> getEpics(java.lang.Object groupIdOrPath, int itemsPerPage, EpicFilter filter) 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 pathfilter
- epic filteritemsPerPage
- the number of epics per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<Epic> getEpicsStream(java.lang.Object groupIdOrPath, java.lang.Long authorId, java.lang.String labels, Constants.EpicOrderBy orderBy, Constants.SortOrder sortOrder, java.lang.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(java.lang.Object groupIdOrPath, java.lang.Long 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 java.util.Optional<Epic> getOptionalEpic(java.lang.Object groupIdOrPath, java.lang.Long 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(java.lang.Object groupIdOrPath, java.lang.String title, java.lang.String labels, java.lang.String description, java.util.Date startDate, java.util.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(java.lang.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(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.String title, java.lang.String labels, java.lang.String description, java.util.Date startDate, java.util.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(java.lang.Object groupIdOrPath, java.lang.Long 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(java.lang.Object groupIdOrPath, java.lang.Long 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 java.util.List<EpicIssue> getEpicIssues(java.lang.Object groupIdOrPath, java.lang.Long 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 java.util.List<EpicIssue> getEpicIssues(java.lang.Object groupIdOrPath, java.lang.Long 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 epics per pageGitLabApiException
- if any exception occurspublic Pager<EpicIssue> getEpicIssues(java.lang.Object groupIdOrPath, java.lang.Long 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 epics per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<EpicIssue> getEpicIssuesStream(java.lang.Object groupIdOrPath, java.lang.Long 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(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.Long issueId) 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 toissueId
- the issue ID of the issue to assign to the epicGitLabApiException
- if any exception occurspublic EpicIssueLink removeIssue(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.Long epicIssueId) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/epics/:epic_iid/issues/:epic_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 fromepicIssueId
- the ID of the "issue - epic" association of the issue to remove from the epicGitLabApiException
- if any exception occurspublic java.util.List<EpicIssue> updateIssue(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.Long epicIssueId, java.lang.Long moveBeforeId, java.lang.Long moveAfterId) throws GitLabApiException
GitLab Endpoint: PUT /groups/:id/epics/:epic_iid/issues/:epic_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 toepicIssueId
- the ID of the "issue - epic" associationmoveBeforeId
- 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 occurspublic java.util.List<ChildEpic> getChildEpics(java.lang.Object groupIdOrPath, java.lang.Long epicIid) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/epics
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 child epics forGitLabApiException
- if any exception occurspublic Pager<ChildEpic> getChildEpics(java.lang.Object groupIdOrPath, java.lang.Long epicIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/epics
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 child epics foritemsPerPage
- the number of child epics per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<ChildEpic> getChildEpicsStream(java.lang.Object groupIdOrPath, java.lang.Long epicIid) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/epics
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 child epics forGitLabApiException
- if any exception occurspublic ChildEpic assignChildEpic(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.Long childEpicId) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/epics/:epic_iid/epics/:child_epic_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 child epic tochildEpicId
- the global ID of the child epic. Epic IID can’t be used because they can conflict with epics from other groups.GitLabApiException
- if any exception occurspublic CreatedChildEpic createAndAssignChildEpic(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.String title, java.lang.Boolean confidential) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/epics/:epic_iid/epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the Epic IID to assign the child epic to (of the future parent epic)title
- the title of a newly created epicconfidential
- whether the epic should be confidential (optional)GitLabApiException
- if any exception occurspublic java.util.List<ChildEpic> reOrderChildEpic(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.Long childEpicId, java.lang.Long moveBeforeId, java.lang.Long moveAfterId) throws GitLabApiException
GitLab Endpoint: PUT /groups/:id/epics/:epic_iid/epics/:child_epic_id
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the Epic IID that the child epic is assigned tochildEpicId
- the ID of the child epic. Epic IID can’t be used because they can conflict with epics from other groups.moveBeforeId
- the ID of a sibling epic that should be placed before the child epic (optional)moveAfterId
- the ID of a sibling epic that should be placed after the child epic (optional)GitLabApiException
- if any exception occurspublic ChildEpic unassignChildEpic(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.Long childEpicId) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/epics/:epic_iid/epics/:child_epic_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 child epic fromchildEpicId
- the ID of the child epic. Epic IID can’t be used because they can conflict with epics from other groups.GitLabApiException
- if any exception occurspublic java.util.List<RelatedEpic> getRelatedEpics(java.lang.Object groupIdOrPath, java.lang.Long epicIid) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/related_epics
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 child epics forGitLabApiException
- if any exception occurspublic Pager<RelatedEpic> getRelatedEpics(java.lang.Object groupIdOrPath, java.lang.Long epicIid, int itemsPerPage) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/related_epics
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 child epics foritemsPerPage
- the number of child epics per pageGitLabApiException
- if any exception occurspublic java.util.stream.Stream<RelatedEpic> getRelatedEpicsStream(java.lang.Object groupIdOrPath, java.lang.Long epicIid) throws GitLabApiException
GitLab Endpoint: GET /groups/:id/epics/:epic_iid/related_epics
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 child epics forGitLabApiException
- if any exception occurspublic RelatedEpicLink createRelatedEpicLink(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.Object targetGroupIdOrPath, java.lang.Long targetEpicIid, LinkType linkType) throws GitLabApiException
GitLab Endpoint: POST /groups/:id/epics/:epic_iid/related_epics
groupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or pathepicIid
- the Epic IID to assign the child epic totargetGroupIdOrPath
- the group ID, path of the group, or a Group instance holding the group ID or path of the target group’s epictargetEpicIid
- the Epic IID of the target group’s epic.linkType
- the type of the relation (optional), defaults to LinkType.RELATES_TO
.GitLabApiException
- if any exception occurspublic RelatedEpicLink deleteRelatedEpicLink(java.lang.Object groupIdOrPath, java.lang.Long epicIid, java.lang.Long relatedEpicLinkId) throws GitLabApiException
GitLab Endpoint: DELETE /groups/:id/epics/:epic_iid/related_epics/:related_epic_link_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 child epic fromrelatedEpicLinkId
- the ID a related epic link.GitLabApiException
- if any exception occurs