updateWorkflowTransitionProperty method

Future<WorkflowTransitionProperty> updateWorkflowTransitionProperty({
  1. required int transitionId,
  2. required String key,
  3. required String workflowName,
  4. String? workflowMode,
  5. required WorkflowTransitionProperty body,
})

Updates a workflow transition by changing the property value. Trying to update a property that does not exist results in a new property being added to the transition. Transition properties are used to change the behavior of a transition. For more information, see Transition properties and Workflow properties.

Permissions required: Administer Jira global permission.

Implementation

Future<WorkflowTransitionProperty> updateWorkflowTransitionProperty(
    {required int transitionId,
    required String key,
    required String workflowName,
    String? workflowMode,
    required WorkflowTransitionProperty body}) async {
  return WorkflowTransitionProperty.fromJson(await _client.send(
    'put',
    'rest/api/3/workflow/transitions/{transitionId}/properties',
    pathParameters: {
      'transitionId': '$transitionId',
    },
    queryParameters: {
      'key': key,
      'workflowName': workflowName,
      if (workflowMode != null) 'workflowMode': workflowMode,
    },
    body: body.toJson(),
  ));
}