@@ -128,6 +128,9 @@ type BoardConfigurationColumnStatus struct {
128
128
// GetAllBoards will returns all boards. This only includes boards that the user has permission to view.
129
129
//
130
130
// Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-getAllBoards
131
+ //
132
+ // TODO Double check this method if this works as expected, is using the latest API and the response is complete
133
+ // This double check effort is done for v2 - Remove this two lines if this is completed.
131
134
func (s * BoardService ) GetAllBoards (ctx context.Context , opt * BoardListOptions ) (* BoardsList , * Response , error ) {
132
135
apiEndpoint := "rest/agile/1.0/board"
133
136
url , err := addOptions (apiEndpoint , opt )
@@ -153,6 +156,9 @@ func (s *BoardService) GetAllBoards(ctx context.Context, opt *BoardListOptions)
153
156
// This board will only be returned if the user has permission to view it.
154
157
//
155
158
// Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-getBoard
159
+ //
160
+ // TODO Double check this method if this works as expected, is using the latest API and the response is complete
161
+ // This double check effort is done for v2 - Remove this two lines if this is completed.
156
162
func (s * BoardService ) GetBoard (ctx context.Context , boardID int ) (* Board , * Response , error ) {
157
163
apiEndpoint := fmt .Sprintf ("rest/agile/1.0/board/%v" , boardID )
158
164
req , err := s .client .NewRequest (ctx , http .MethodGet , apiEndpoint , nil )
@@ -178,6 +184,9 @@ func (s *BoardService) GetBoard(ctx context.Context, boardID int) (*Board, *Resp
178
184
// board will be created instead (remember that board sharing depends on the filter sharing).
179
185
//
180
186
// Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-createBoard
187
+ //
188
+ // TODO Double check this method if this works as expected, is using the latest API and the response is complete
189
+ // This double check effort is done for v2 - Remove this two lines if this is completed.
181
190
func (s * BoardService ) CreateBoard (ctx context.Context , board * Board ) (* Board , * Response , error ) {
182
191
apiEndpoint := "rest/agile/1.0/board"
183
192
req , err := s .client .NewRequest (ctx , http .MethodPost , apiEndpoint , board )
@@ -199,6 +208,9 @@ func (s *BoardService) CreateBoard(ctx context.Context, board *Board) (*Board, *
199
208
//
200
209
// Jira API docs: https://docs.atlassian.com/jira-software/REST/cloud/#agile/1.0/board-deleteBoard
201
210
// Caller must close resp.Body
211
+ //
212
+ // TODO Double check this method if this works as expected, is using the latest API and the response is complete
213
+ // This double check effort is done for v2 - Remove this two lines if this is completed.
202
214
func (s * BoardService ) DeleteBoard (ctx context.Context , boardID int ) (* Board , * Response , error ) {
203
215
apiEndpoint := fmt .Sprintf ("rest/agile/1.0/board/%v" , boardID )
204
216
req , err := s .client .NewRequest (ctx , http .MethodDelete , apiEndpoint , nil )
@@ -217,6 +229,9 @@ func (s *BoardService) DeleteBoard(ctx context.Context, boardID int) (*Board, *R
217
229
// This only includes sprints that the user has permission to view.
218
230
//
219
231
// Jira API docs: https://developer.atlassian.com/cloud/jira/software/rest/api-group-board/#api-rest-agile-1-0-board-boardid-sprint-get
232
+ //
233
+ // TODO Double check this method if this works as expected, is using the latest API and the response is complete
234
+ // This double check effort is done for v2 - Remove this two lines if this is completed.
220
235
func (s * BoardService ) GetAllSprints (ctx context.Context , boardID int , options * GetAllSprintsOptions ) (* SprintsList , * Response , error ) {
221
236
apiEndpoint := fmt .Sprintf ("rest/agile/1.0/board/%d/sprint" , boardID )
222
237
url , err := addOptions (apiEndpoint , options )
@@ -239,6 +254,9 @@ func (s *BoardService) GetAllSprints(ctx context.Context, boardID int, options *
239
254
240
255
// GetBoardConfiguration will return a board configuration for a given board Id
241
256
// Jira API docs:https://developer.atlassian.com/cloud/jira/software/rest/#api-rest-agile-1-0-board-boardId-configuration-get
257
+ //
258
+ // TODO Double check this method if this works as expected, is using the latest API and the response is complete
259
+ // This double check effort is done for v2 - Remove this two lines if this is completed.
242
260
func (s * BoardService ) GetBoardConfiguration (ctx context.Context , boardID int ) (* BoardConfiguration , * Response , error ) {
243
261
apiEndpoint := fmt .Sprintf ("rest/agile/1.0/board/%d/configuration" , boardID )
244
262
0 commit comments