Package org.gitlab4j.api
Class BoardsApi
java.lang.Object
org.gitlab4j.api.AbstractApi
org.gitlab4j.api.BoardsApi
- All Implemented Interfaces:
Constants
This class implements the client side API for the GitLab Issue Boards API calls.
NOTE: If a user is not a member of a group and the group is private,
a GET request on that group will result to a 404 status code.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gitlab4j.api.Constants
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.AutoDevopsDeployStrategy, Constants.BuildGitStrategy, Constants.CommitBuildState, Constants.ContributorOrderBy, 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.ProjectOrderBy, Constants.ProjectSearchScope, Constants.SearchScope, Constants.SortOrder, Constants.SquashOption, Constants.StateEvent, Constants.TagOrderBy, Constants.TargetType, Constants.TodoAction, Constants.TodoState, Constants.TodoType, Constants.TokenType
-
Field Summary
Fields inherited from class org.gitlab4j.api.AbstractApi
gitLabApi
Fields inherited from interface org.gitlab4j.api.Constants
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBoard
(Object projectIdOrPath, String name) Creates a new Issue Board.createBoardList
(Object projectIdOrPath, Long boardId, Long labelId) Creates a new Issue Board list.void
deleteBoard
(Object projectIdOrPath, Long boardId) Soft deletes an existing Issue Board.void
deleteBoardList
(Object projectIdOrPath, Long boardId, Long listId) Soft deletes an existing Issue Board list.Get a single issue board.getBoardList
(Object projectIdOrPath, Long boardId, Long listId) Get a single issue board list.getBoardLists
(Object projectIdOrPath, Long boardId) Get a list of the board’s lists.getBoardLists
(Object projectIdOrPath, Long boardId, int itemsPerPage) Get a Pager of the board’s lists.getBoardLists
(Object projectIdOrPath, Long boardId, int page, int perPage) Get a list of the board’s lists for the specified project to using the specified page and per page setting.Lists Issue Boards in the given project.Get a Pager of all issue boards for the specified project.Get all issue boards for the specified project using the specified page and per page settinggetBoardsListsStream
(Object projectIdOrPath, Long boardId) Get a Stream of the board’s lists.getBoardsStream
(Object projectIdOrPath) Get a Stream of all issue boards for the specified project.getOptionalBoard
(Object projectIdOrPath, Long boardId) Get an issue board as an Optional instance.getOptionalBoardList
(Object projectIdOrPath, Long boardId, Long listId) Get a single issue board list as an Optional instance.updateBoard
(Object projectIdOrPath, Long boardId, String name, Long assigneeId, Long milestoneId, String labels, Integer weight) Updates an existing Issue Board.updateBoardList
(Object projectIdOrPath, Long boardId, Long listId, Integer position) Updates an existing Issue Board list.Methods inherited from class org.gitlab4j.api.AbstractApi
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
-
Constructor Details
-
BoardsApi
-
-
Method Details
-
getBoards
Lists Issue Boards in the given project.GitLab Endpoint: GET /projects/:id/boards
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instance- Returns:
- a list of project's issue boards
- Throws:
GitLabApiException
- if any exception occurs
-
getBoards
public List<Board> getBoards(Object projectIdOrPath, int page, int perPage) throws GitLabApiException Get all issue boards for the specified project using the specified page and per page settingGitLab Endpoint: GET /projects/:id/boards
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancepage
- the page to getperPage
- the number of items per page- Returns:
- a list of project's Boards in the specified range
- Throws:
GitLabApiException
- if any exception occurs
-
getBoards
Get a Pager of all issue boards for the specified project.GitLab Endpoint: GET /projects/:id/boards
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceitemsPerPage
- the number of items per page- Returns:
- a Pager of project's issue boards
- Throws:
GitLabApiException
- if any exception occurs
-
getBoardsStream
Get a Stream of all issue boards for the specified project.GitLab Endpoint: GET /projects/:id/boards
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instance- Returns:
- a Stream of project's issue boards
- Throws:
GitLabApiException
- if any exception occurs
-
getBoard
Get a single issue board.GitLab Endpoint: GET /projects/:id/boards/:board_id
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the board- Returns:
- a Board instance for the specified board ID
- Throws:
GitLabApiException
- if any exception occurs
-
getOptionalBoard
Get an issue board as an Optional instance.GitLab Endpoint: GET /projects/:id/boards/:board_id
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the board- Returns:
- the Board instance for the specified board ID as an Optional instance
-
createBoard
Creates a new Issue Board.NOTE: This is only available in GitLab EE
GitLab Endpoint: POST /projects/:id/boards
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instancename
- the name for the new board- Returns:
- the created Board instance
- Throws:
GitLabApiException
- if any exception occurs
-
updateBoard
public BoardList updateBoard(Object projectIdOrPath, Long boardId, String name, Long assigneeId, Long milestoneId, String labels, Integer weight) throws GitLabApiException Updates an existing Issue Board.NOTE: This is only available in GitLab EE
GitLab Endpoint: PUT /projects/:id/boards/:board_id
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instance, requiredboardId
- the ID of the board, requiredname
- the new name of the board, optional (can be null)assigneeId
- the assignee the board should be scoped to, optional (can be null)milestoneId
- the milestone the board should be scoped to, optional (can be null)labels
- a comma-separated list of label names which the board should be scoped to, optional (can be null)weight
- the weight range from 0 to 9, to which the board should be scoped to, optional (can be null)- Returns:
- the updated Board instance
- Throws:
GitLabApiException
- if any exception occurs
-
deleteBoard
Soft deletes an existing Issue Board.NOTE: This is only available in GitLab EE
GitLab Endpoint: DELETE /projects/:id/boards/:board_id
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the board- Throws:
GitLabApiException
- if any exception occurs
-
getBoardLists
public List<BoardList> getBoardLists(Object projectIdOrPath, Long boardId) throws GitLabApiException Get a list of the board’s lists. Does not include open and closed lists.GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the board- Returns:
- a list of the issue board's lists
- Throws:
GitLabApiException
- if any exception occurs
-
getBoardLists
public List<BoardList> getBoardLists(Object projectIdOrPath, Long boardId, int page, int perPage) throws GitLabApiException Get a list of the board’s lists for the specified project to using the specified page and per page setting. Does not include open and closed lists.GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the boardpage
- the page to getperPage
- the number of Boards per page- Returns:
- a list of the issue board's lists in the specified range
- Throws:
GitLabApiException
- if any exception occurs
-
getBoardLists
public Pager<BoardList> getBoardLists(Object projectIdOrPath, Long boardId, int itemsPerPage) throws GitLabApiException Get a Pager of the board’s lists. Does not include open and closed lists.GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the boarditemsPerPage
- the number of Board instances that will be fetched per page- Returns:
- a Pager of the issue board's lists
- Throws:
GitLabApiException
- if any exception occurs
-
getBoardsListsStream
public Stream<BoardList> getBoardsListsStream(Object projectIdOrPath, Long boardId) throws GitLabApiException Get a Stream of the board’s lists. Does not include open and closed lists.GitLab Endpoint: GET /projects/:id/boards/:board_id/lists
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the board- Returns:
- a Stream of the issue board's lists
- Throws:
GitLabApiException
- if any exception occurs
-
getBoardList
public BoardList getBoardList(Object projectIdOrPath, Long boardId, Long listId) throws GitLabApiException Get a single issue board list.GitLab Endpoint: GET /projects/:id/boards/:board_id/lists/:list_id
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the boardlistId
- the ID of the board lists to get- Returns:
- a BoardList instance for the specified board ID and list ID
- Throws:
GitLabApiException
- if any exception occurs
-
getOptionalBoardList
Get a single issue board list as an Optional instance.GitLab Endpoint: GET /projects/:id/boards/:board_id/lists/:list_id
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the boardlistId
- the ID of the board lists to get- Returns:
- a BoardList instance for the specified board ID and list ID as an Optional instance
-
createBoardList
public BoardList createBoardList(Object projectIdOrPath, Long boardId, Long labelId) throws GitLabApiException Creates a new Issue Board list.GitLab Endpoint: POST /projects/:id/boards/:board_id/lists
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the boardlabelId
- the ID of the label- Returns:
- the created BoardList instance
- Throws:
GitLabApiException
- if any exception occurs
-
updateBoardList
public BoardList updateBoardList(Object projectIdOrPath, Long boardId, Long listId, Integer position) throws GitLabApiException Updates an existing Issue Board list. This call is used to change list position.GitLab Endpoint: PUT /projects/:id/boards/:board_id/lists/:list_id
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the boardlistId
- the ID of the listposition
- the new position for the list- Returns:
- the updated BoardList instance
- Throws:
GitLabApiException
- if any exception occurs
-
deleteBoardList
public void deleteBoardList(Object projectIdOrPath, Long boardId, Long listId) throws GitLabApiException Soft deletes an existing Issue Board list. Only for admins and project owners.GitLab Endpoint: DELETE /projects/:id/boards/:board_id/lists/:list_id
- Parameters:
projectIdOrPath
- the project in the form of an Long(ID), String(path), or Project instanceboardId
- the ID of the boardlistId
- the ID of the list- Throws:
GitLabApiException
- if any exception occurs
-