estimateIssueForBoard method

Future estimateIssueForBoard({
  1. required String issueIdOrKey,
  2. int? boardId,
  3. required Map<String, dynamic> body,
})

Updates the estimation of the issue. boardId param is required. This param determines which field will be updated on a issue.

Note that this resource changes the estimation field of the issue regardless of appearance the field on the screen.

Original time tracking estimation field accepts estimation in formats like "1w", "2d", "3h", "20m" or number which represent number of minutes. However, internally the field stores and returns the estimation as a number of seconds.

The field used for estimation on the given board can be obtained from board configuration resource. More information about the field are returned by edit meta resource or field resource.

Implementation

Future<dynamic> estimateIssueForBoard(
    {required String issueIdOrKey,
    int? boardId,
    required Map<String, dynamic> body}) async {
  return await _client.send(
    'put',
    'rest/agile/1.0/issue/{issueIdOrKey}/estimation',
    pathParameters: {
      'issueIdOrKey': issueIdOrKey,
    },
    queryParameters: {
      if (boardId != null) 'boardId': '$boardId',
    },
    body: body,
  );
}