Module: Gitlab::Client::GroupBoards
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/group_boards.rb
Overview
Defines methods related to group issue boards.
Instance Method Summary collapse
-
#create_group_board(group, name) ⇒ Gitlab::ObjectifiedHash
Creates a new group issue board.
-
#create_group_board_list(group, board_id, label_id) ⇒ Gitlab::ObjectifiedHash
Creates a new group issue board list.
-
#delete_group_board(group, id) ⇒ void
Deletes a group issue board.
-
#delete_group_board_list(group, board_id, id) ⇒ void
Deletes a group issue board list.
-
#edit_group_board(group, id, options = {}) ⇒ Gitlab::ObjectifiedHash
Updates a group issue board.
-
#edit_group_board_list(group, board_id, id, options = {}) ⇒ Gitlab::ObjectifiedHash
Updates an existing group issue board list.
-
#group_board(group, id) ⇒ Gitlab::ObjectifiedHash
Gets a single group issue board.
-
#group_board_list(group, board_id, id) ⇒ Gitlab::ObjectifiedHash
Get a single group issue board list.
-
#group_board_lists(group, board_id) ⇒ Array<Gitlab::ObjectifiedHash>
Get a list of the boards lists.
-
#group_boards(group) ⇒ Array<Gitlab::ObjectifiedHash>
Lists Issue Boards in the given group.
Instance Method Details
#create_group_board(group, name) ⇒ Gitlab::ObjectifiedHash
Creates a new group issue board.
38 39 40 41 |
# File 'lib/gitlab/client/group_boards.rb', line 38 def create_group_board(group, name) body = { name: name } post("/groups/#{url_encode group}/boards", body: body) end |
#create_group_board_list(group, board_id, label_id) ⇒ Gitlab::ObjectifiedHash
Creates a new group issue board list.
108 109 110 111 |
# File 'lib/gitlab/client/group_boards.rb', line 108 def create_group_board_list(group, board_id, label_id) body = { label_id: label_id } post("/groups/#{url_encode group}/boards/#{board_id}/lists", body: body) end |
#delete_group_board(group, id) ⇒ void
This method returns an undefined value.
Deletes a group issue board.
70 71 72 |
# File 'lib/gitlab/client/group_boards.rb', line 70 def delete_group_board(group, id) delete("/groups/#{url_encode group}/boards/#{id}") end |
#delete_group_board_list(group, board_id, id) ⇒ void
This method returns an undefined value.
Deletes a group issue board list.
137 138 139 |
# File 'lib/gitlab/client/group_boards.rb', line 137 def delete_group_board_list(group, board_id, id) delete("/groups/#{url_encode group}/boards/#{board_id}/lists/#{id}") end |
#edit_group_board(group, id, options = {}) ⇒ Gitlab::ObjectifiedHash
Updates a group issue board.
58 59 60 |
# File 'lib/gitlab/client/group_boards.rb', line 58 def edit_group_board(group, id, = {}) put("/groups/#{url_encode group}/boards/#{id}", body: ) end |
#edit_group_board_list(group, board_id, id, options = {}) ⇒ Gitlab::ObjectifiedHash
Updates an existing group issue board list. This call is used to change list position.
124 125 126 |
# File 'lib/gitlab/client/group_boards.rb', line 124 def edit_group_board_list(group, board_id, id, = {}) put("/groups/#{url_encode group}/boards/#{board_id}/lists/#{id}", body: ) end |
#group_board(group, id) ⇒ Gitlab::ObjectifiedHash
Gets a single group issue board.
26 27 28 |
# File 'lib/gitlab/client/group_boards.rb', line 26 def group_board(group, id) get("/groups/#{url_encode group}/boards/#{id}") end |
#group_board_list(group, board_id, id) ⇒ Gitlab::ObjectifiedHash
Get a single group issue board list.
95 96 97 |
# File 'lib/gitlab/client/group_boards.rb', line 95 def group_board_list(group, board_id, id) get("/groups/#{url_encode group}/boards/#{board_id}/lists/#{id}") end |
#group_board_lists(group, board_id) ⇒ Array<Gitlab::ObjectifiedHash>
Get a list of the boards lists. Does not include open and closed lists
82 83 84 |
# File 'lib/gitlab/client/group_boards.rb', line 82 def group_board_lists(group, board_id) get("/groups/#{url_encode group}/boards/#{board_id}/lists") end |
#group_boards(group) ⇒ Array<Gitlab::ObjectifiedHash>
Lists Issue Boards in the given group.
14 15 16 |
# File 'lib/gitlab/client/group_boards.rb', line 14 def group_boards(group) get("/groups/#{url_encode group}/boards") end |