Quick action to set issue type as incident upon creation (#376760) · Issues · GitLab.org / GitLab · GitLab (original) (raw)
Quick action to set issue type as incident upon creation
Release notes
With this release, users can create issues, and set the issue_type
to an incident on creation with the /promote_to_incident quick action. When a user creates an issue template they can use the quick action to set the type, rather than having to change the type in the type dropdown field.
https://docs.gitlab.com/ee/user/project/quick_actions.html#gitlab-quick-actions
Problem
When creating issues, it doesn't appear that there is currently a way to set the Type
on creation with a slash command/quick action.
For example, when using issue templates this would be useful so that an incident
type will be raised without having to specifically select Incident
in the Type
dropdown field, or raise an incident via Monitor > Incidents
which pre-selects Incident
for the Type
dropdown.
There is currently a /promote_to_incident command, however this only works on existing issues, not upon the creation of an issue.
Click to expand - Additional context from customerFor additional context, the creation of this issue stems from an Ultimate SaaS customer reaching out to Support, where in their case they'd like less technical users to be able to simply select one of the created issue templates and have it raise either an issue or incident according to the template content, rather than requiring the users to differentiate between the two and manually select the `Type` and/or navigate to different areas (`Issues > Create Issue` vs `Monitor > Incidents > Create Incident`)
Scenario/expected workflow
- Someone is in the "new issue" form
- They select an incident issue template
- The issue template contains the
/promote_to_incident
slash command/quick action - Incident would be immediately promoted to an incident at the time of issue creation, rather than having select incident from the type dropdown
Proposal
Ensure the /promote_to_incident
slash command/quick action works in issue descriptions so that if someone adds it to an incident template, the resulting issue will be automatically promoted to an incident without the user needing to remember to change the type
in the dropdown field.
Edited Jan 22, 2023 by James Reed