Skip to content

Added option to include work item type id in autocomplete

What does this MR do and why?

Autocomplete for quick action commands needs to know the work item type as the commands are dependent on the widgets available. It gets that information from a work item's iid, but we don't have an iid on creation of a work item. This MR adds the ability to pass a work_item_type_id instead of using an iid.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Visit the autosource endpoint for a project or group, with WorkItem as the type and a work_item_type_id param set, for example http://127.0.0.1:3000/flightjs/Flight/-/autocomplete_sources/commands?type=WorkItem&work_item_type_id=1

Related to #391664

Edited by Donald Cook

Merge request reports