Add /promote_to quick action to Work Items
Summary
Work Items support /change type
since %16.0 via #385227 (closed).
There are additional things we need to do on top of /type
for Tasks and OKRs (only user-facing implementations of Work Items;
Tasks
If a task is orphaned (i.e. if it is removed from an Issue after creation and is not associated with any issue as a child), we can use /type Issue
in it to promote it as an issue. However, when /type Issue
is used in a task that's not orphaned, it fails silently (see #391281). So we need to add /promote
quick action in Tasks, which would behave the same as /type Issue
.
Key Results
KRs already support /type Objective
, but for the sake of consistency, we need to add /promote
here too which does the same.
This will make /promote
consistent across Issues, Tasks, and Key Results.
Update
It was agreed to use /promote_to <Type>
instead of /promote
to support work item types that have more than one option to promote to.
Support for this new action will be as follows:
- Available in issues:
/promote_to Epic
/promote_to Incident
- Available in tasks:
/promote_to Issue
- Available in key results:
/promote_to Objective
- Available in incidents:
/promote_to Issue