Add support to search by pasting links in work item input component
What does this MR do and why?
This MR covers following part of Add support of pasting links and search by refe... (#427594 - closed)
- Add support of search by work items/issue link
Screenshots or screen recordings
Screen Recording 2023-11-07 at 2.43.46 PM.mov
How to set up and validate locally
Prerequisites:
- Enable the OKRs feature as mentioned in the OKRs docs (e.g.
::Feature.enabled?(:okrs_mvc, Project.find(<PROJECT_ID>))
and the namespace must have Ultimate plan). - Enable the feature flag
Feature.enable(:linked_work_items)
Steps to verify:
- Login with any user
- Go to any Project > Issues > List
- Create an new Objective under New issue split button
- Go to Objective detail page
- Under
Linked Items
, click onAdd
button to open the form - Paste a work item or issue link of any project
- Check if it brings the correct result
- Press enter or select the list item
- The token should be added to the input box
This also affects the Child objectives and key results
widget above Linked Items
. Try to search and add any Objective/Key result using Add > Existing objective/key result
option in the Child objectives and key results
widget.
Moreover, for Tasks in issues. Search and Add a Task as mention Add a Task docs under an Issue
Limitations:
- Searching group level work items (Epic Work Items) is not supported
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #427594 (closed)
Edited by Rajan Mistry