public class IssuesApi extends AbstractApi implements Constants
Constants.ActionType, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, 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 |
---|---|
TimeStats |
addSpentTime(Integer projectId,
Integer issueIid,
Duration duration)
Adds spent time for this issue
POST /projects/:id/issues/:issue_iid/add_spent_time
|
TimeStats |
addSpentTime(Integer projectId,
Integer issueIid,
int duration)
Adds spent time for this issue
POST /projects/:id/issues/:issue_iid/add_spent_time
|
TimeStats |
addSpentTime(Integer projectId,
Integer issueIid,
String duration)
Adds spent time for this issue
POST /projects/:id/issues/:issue_iid/add_spent_time
|
Issue |
closeIssue(Integer projectId,
Integer issueIid)
Closes an existing project issue.
|
Issue |
createIssue(Integer projectId,
String title,
String description)
Create an issue for the project.
|
Issue |
createIssue(Integer projectId,
String title,
String description,
Boolean confidential,
List<Integer> assigneeIds,
Integer milestoneId,
String labels,
Date createdAt,
Date dueDate,
Integer mergeRequestToResolveId,
Integer discussionToResolveId)
Create an issue for the project.
|
void |
deleteIssue(Integer projectId,
Integer issueIid)
Delete an issue.
|
TimeStats |
estimateTime(Integer projectId,
Integer issueIid,
Duration duration)
Sets an estimated time of work in this issue
POST /projects/:id/issues/:issue_iid/time_estimate
|
TimeStats |
estimateTime(Integer projectId,
Integer issueIid,
int duration)
Sets an estimated time of work in this issue
POST /projects/:id/issues/:issue_iid/time_estimate
|
TimeStats |
estimateTime(Integer projectId,
Integer issueIid,
String duration)
Sets an estimated time of work in this issue
POST /projects/:id/issues/:issue_iid/time_estimate
|
Issue |
getIssue(Integer projectId,
Integer issueId)
Get a single project issue.
|
List<Issue> |
getIssues()
Get all issues the authenticated user has access to.
|
Pager<Issue> |
getIssues(int itemsPerPage)
Get a Pager of all issues the authenticated user has access to.
|
List<Issue> |
getIssues(Integer projectId)
Get a list of project's issues.
|
Pager<Issue> |
getIssues(Integer projectId,
int itemsPerPage)
Get a Pager of project's issues.
|
List<Issue> |
getIssues(Integer projectId,
int page,
int perPage)
Get a list of project's issues using the specified page and per page settings.
|
List<Issue> |
getIssues(int page,
int perPage)
Get all issues the authenticated user has access to using the specified page and per page setting.
|
TimeStats |
getTimeTrackingStats(Integer projectId,
Integer issueIid)
Get time tracking stats
GET /projects/:id/issues/:issue_iid/time_stats
|
TimeStats |
resetEstimatedTime(Integer projectId,
Integer issueIid)
Resets the estimated time for this issue to 0 seconds.
|
TimeStats |
resetSpentTime(Integer projectId,
Integer issueIid)
Resets the total spent time for this issue to 0 seconds.
|
Issue |
updateIssue(Integer projectId,
Integer issueIid,
String title,
String description,
Boolean confidential,
List<Integer> assigneeIds,
Integer milestoneId,
String labels,
Constants.StateEvent stateEvent,
Date updatedAt,
Date dueDate)
Updates an existing project issue.
|
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getPageQueryParams, getWithAccepts, handle, isApiVersion, post, post, post, put, put, putWithFormData, urlEncode, validate
public IssuesApi(GitLabApi gitLabApi)
public List<Issue> getIssues() throws GitLabApiException
GitLabApiException
- if any exception occurspublic List<Issue> getIssues(int page, int perPage) throws GitLabApiException
page
- the page to getperPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Pager<Issue> getIssues(int itemsPerPage) throws GitLabApiException
itemsPerPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic List<Issue> getIssues(Integer projectId) throws GitLabApiException
projectId
- the project ID to get the issues forGitLabApiException
- if any exception occurspublic List<Issue> getIssues(Integer projectId, int page, int perPage) throws GitLabApiException
projectId
- the project ID to get the issues forpage
- the page to getperPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Pager<Issue> getIssues(Integer projectId, int itemsPerPage) throws GitLabApiException
projectId
- the project ID to get the issues foritemsPerPage
- the number of issues per pageGitLabApiException
- if any exception occurspublic Issue getIssue(Integer projectId, Integer issueId) throws GitLabApiException
projectId
- the project ID to get the issue forissueId
- the internal ID of a project's issueGitLabApiException
- if any exception occurspublic Issue createIssue(Integer projectId, String title, String description) throws GitLabApiException
projectId
- the ID of the project owned by the authenticated user, requiredtitle
- the title of an issue, requireddescription
- the description of an issue, optionalGitLabApiException
- if any exception occurspublic Issue createIssue(Integer projectId, String title, String description, Boolean confidential, List<Integer> assigneeIds, Integer milestoneId, String labels, Date createdAt, Date dueDate, Integer mergeRequestToResolveId, Integer discussionToResolveId) throws GitLabApiException
projectId
- the ID of the project owned by the authenticated user, requiredtitle
- the issue title of an issue, requireddescription
- the description of an issue, optionalconfidential
- set the issue to be confidential, default is false, optionalassigneeIds
- the IDs of the users to assign issue, optionalmilestoneId
- the ID of a milestone to assign issue, optionallabels
- comma-separated label names for an issue, optionalcreatedAt
- the date the issue was created at, optionaldueDate
- the due date, optionalmergeRequestToResolveId
- the IID of a merge request in which to resolve all issues. This will fill the issue with a default
description and mark all discussions as resolved. When passing a description or title, these values will take precedence over the default values. OptionaldiscussionToResolveId
- the ID of a discussion to resolve. This will fill in the issue with a default description and mark the discussion as resolved.
Use in combination with merge_request_to_resolve_discussions_of. OptionalGitLabApiException
- if any exception occurspublic Issue closeIssue(Integer projectId, Integer issueIid) throws GitLabApiException
projectId
- the ID of the project owned by the authenticated user, requiredissueIid
- the issue IID to update, requiredGitLabApiException
- if any exception occurspublic Issue updateIssue(Integer projectId, Integer issueIid, String title, String description, Boolean confidential, List<Integer> assigneeIds, Integer milestoneId, String labels, Constants.StateEvent stateEvent, Date updatedAt, Date dueDate) throws GitLabApiException
projectId
- the ID of the project owned by the authenticated user, requiredissueIid
- the issue IID to update, requiredtitle
- the title of an issue, optionaldescription
- the description of an issue, optionalconfidential
- set the issue to be confidential, default is false, optionalassigneeIds
- the IDs of the users to assign issue, optionalmilestoneId
- the ID of a milestone to assign issue, optionallabels
- comma-separated label names for an issue, optionalstateEvent
- the state event of an issue. Set close to close the issue and reopen to reopen it, optionalupdatedAt
- sets the updated date, requires admin or project owner rights, optionaldueDate
- the due date, optionalGitLabApiException
- if any exception occurspublic void deleteIssue(Integer projectId, Integer issueIid) throws GitLabApiException
projectId
- the project ID to delete the issue fromissueIid
- the internal ID of a project's issueGitLabApiException
- if any exception occurspublic TimeStats estimateTime(Integer projectId, Integer issueIid, int duration) throws GitLabApiException
projectId
- the project ID that owns the issueissueIid
- the internal ID of a project's issueduration
- estimated time in secondsGitLabApiException
- if any exception occurspublic TimeStats estimateTime(Integer projectId, Integer issueIid, String duration) throws GitLabApiException
projectId
- the project ID that owns the issueissueIid
- the internal ID of a project's issueduration
- Human readable format, e.g. 3h30mGitLabApiException
- if any exception occurspublic TimeStats estimateTime(Integer projectId, Integer issueIid, Duration duration) throws GitLabApiException
projectId
- the project ID that owns the issueissueIid
- the internal ID of a project's issueduration
- set the estimate of time to this durationGitLabApiException
- if any exception occurspublic TimeStats resetEstimatedTime(Integer projectId, Integer issueIid) throws GitLabApiException
projectId
- the project ID that owns the issueissueIid
- the internal ID of a project's issueGitLabApiException
- if any exception occurspublic TimeStats addSpentTime(Integer projectId, Integer issueIid, int duration) throws GitLabApiException
projectId
- the project ID that owns the issueissueIid
- the internal ID of a project's issueduration
- the duration in secondsGitLabApiException
- if any exception occurspublic TimeStats addSpentTime(Integer projectId, Integer issueIid, String duration) throws GitLabApiException
projectId
- the project ID to delete the issue fromissueIid
- the internal ID of a project's issueduration
- Human readable format, e.g. 3h30mGitLabApiException
- if any exception occurspublic TimeStats addSpentTime(Integer projectId, Integer issueIid, Duration duration) throws GitLabApiException
projectId
- the project ID to delete the issue fromissueIid
- the internal ID of a project's issueduration
- the duration of time spentGitLabApiException
- if any exception occurspublic TimeStats resetSpentTime(Integer projectId, Integer issueIid) throws GitLabApiException
projectId
- the project ID that owns the issueissueIid
- the internal ID of a project's issueGitLabApiException
- if any exception occurspublic TimeStats getTimeTrackingStats(Integer projectId, Integer issueIid) throws GitLabApiException
projectId
- the project ID that owns the issueissueIid
- the internal ID of a project's issueGitLabApiException
- if any exception occursCopyright © 2017. All rights reserved.