Fix positioning of work item sticky alerts
What does this MR do and why?
This MR fixes the sticky positioning of work item alerts, taking into account the possibility that they will appear in a drawer and the presence of the sticky header for work items when scrolled.
References
Screenshots or screen recordings
| Scenario | Before | After |
|---|---|---|
| Full page work item, at top (no change) | ![]() |
![]() |
| Full page work item, scrolling | Screen_Recording_2025-08-13_at_14.41.15 | Screen_Recording_2025-08-13_at_14.38.25 |
| Drawer work item, at top | ![]() |
![]() |
| Drawer work item, scrolling | Screen_Recording_2025-08-13_at_14.40.41 | Screen_Recording_2025-08-13_at_14.39.51 |
How to set up and validate locally
The easiest way to get an alert currently is to create a work item that has child tasks, then try to toggle confidentiality on the parent.
- Check out this branch
- Create or locate in your GDK a work item that has one or more child tasks, all of which are not confidential
- Open the parent work item in a full page view.
- Attempt to toggle confidentiality. An error alert will appear. It will be correctly positioned at the top of the work item detail.
- Scroll the work item. The work item sticky header will appear and the alert will move to be beneath the sticky header.
- Open the same parent work item in a drawer, for example from the project issues list page, and repeat steps 4 and 5. You will see that in a drawer, the alert is now positioned correctly both when scrolled to the top of the drawer and when scrolling down and revealing the work item sticky header.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #558376 (closed)



