Fix work item todos and notification after adding linked items widget
What does this MR do and why?
After addition of WorkItemWidgetLinkedItems
in the work_items/graphql/work_item_widgets.fragment.graphql
, the todos widget is not working if it is opened in a modal.
Screenshots or screen recordings
No visual changes
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 flags
Feature.enable(:linked_work_items)
Feature.enable(:work_items_mvc_2)
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 on
Add
button to open the form - Select any relationship
- Search the work item and click
Add
- Open the added item in modal by clicking on it
- Add the item in todos
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.
Edited by Rajan Mistry