updateCustomFieldValue method

Future updateCustomFieldValue({
  1. required String fieldIdOrKey,
  2. bool? generateChangelog,
  3. required CustomFieldValueUpdateDetails body,
})

Updates the value of a custom field on one or more issues. Custom fields can only be updated by the Forge app that created them.

Permissions required: Only the app that created the custom field can update its values with this operation.

Implementation

Future<dynamic> updateCustomFieldValue(
    {required String fieldIdOrKey,
    bool? generateChangelog,
    required CustomFieldValueUpdateDetails body}) async {
  return await _client.send(
    'put',
    'rest/api/3/app/field/{fieldIdOrKey}/value',
    pathParameters: {
      'fieldIdOrKey': fieldIdOrKey,
    },
    queryParameters: {
      if (generateChangelog != null)
        'generateChangelog': '$generateChangelog',
    },
    body: body.toJson(),
  );
}