Add a per-definition option to exclude a definition from manual approval initiation (hide it from the "New" tab)
Description
Background
Today, manual initiation of approvals is controlled by a single global setting ("Allow manual initiation of approvals"). When it is on, every active approval definition that the user can reach is offered in the "New" tab, where users manually start an approval. There is no way to allow manual initiation in general but exclude a specific definition from being started manually.
A customer needs to prevent a particular approval definition from being started manually, independently of how many projects/spaces use that definition. They explicitly do not want a per-project setting for this case: they want the restriction to live on the definition itself.
Problem
There is no per-definition switch to remove a definition from the manual "New" picker. It is all-or-nothing via the global toggle.
Proposed solution
Add a boolean flag on the approval definition, "Allow manual initiation" (default: enabled, to preserve current behaviour). When turned off, the definition is removed from the list shown in the "New" tab for all users. The flag is a property of the definition, so it applies consistently across every project/space that uses it.
UI placement
Group the manual-initiation and work-item-type controls into a single collapsible section named "Availability" on the Create/Edit definition form, in this order:
-
Allow manual initiation (new checkbox, default: checked): "If unchecked, this definition cannot be started manually and will not appear in the New tab."
-
Work item type (existing multi-select, moved into this section): "Leave empty to make definition accessible across all work item types."
The section surfaces only the controls whose global gate is enabled ("Allow manual initiation" depends on the global manual-initiation setting; "Work item type" depends on the Approval Conditions setting). When neither gate is enabled, the section behaves as it does today.
Acceptance criteria
-
A new per-definition option ("Allow manual initiation", default: enabled) is available when editing an approval definition, in the "Availability" section.
-
When the option is disabled, the definition no longer appears in the "New" tab manual-start picker for any user, in any project/space that uses it.
-
The flag is honoured by the reference endpoint that feeds the "New" tab (GET /rest/definition/reference), as an additional filter.
-
The flag only restricts manual initiation. Approvals for that definition can still be created automatically (by conditions/automation); only manual start from the "New" tab is suppressed.
-
The global "Allow manual initiation of approvals" setting remains the master switch. The per-definition flag only further narrows behaviour for definitions that are otherwise allowed; it never enables manual start when the global setting is off.
-
Existing definitions are unaffected (treated as enabled) after the change.