Web API ignores the approval name and options when starting an approval
Description
Problem
Creating an approval through the Web API accepts the start options described in the API documentation: name, priority, decision deadline, automatic reminders, Abstain and approving the current page version. Approval Path ignores them and always uses the definition's settings. The response reports success, so an integration cannot tell that the options were skipped.
Change
-
A Web API start applies the options from the request when the performer may parametrize the approval on that work item or page. The rule is the same as for Parametrize in the UI.
-
When the performer lacks that permission or is a JSM customer, the approval gets the definition's settings, as today.
-
Options from the request stay within the limits of the global and definition settings.
-
The Web API documentation says when the options are applied.
Out of scope
-
Rovo starts: always the definition's settings.
Acceptance criteria
-
Performer who may parametrize: an approval created through the Web API has the name, priority, decision deadline, reminders, Abstain and page-version option from the request, within the global and definition settings.
-
Performer without that permission: the approval has the definition's settings.
-
Start as a JSM customer: the approval has the definition's settings.
-
With the app's work item or page permissions turned off, the options are applied for every performer who is not a JSM customer.
-
A request without options creates an approval with the definition's settings, as today.
-
The Web API documentation for creating an approval says when the options are applied.