Child items widget shows health status for closed items
Summary
From feedback issue for epics to work items transition #463598 (comment 2075723530)
I noticed that we are showing the health status in the hierarchy tree even if the work item status is already "Closed".
Before, we used to hide the badge when the item is closed.
Steps to reproduce
Create an epic with closed work items that have a health status.
Example Project
What is the current bug behavior?
Closed items show a health status
What is the expected correct behavior?
Closed items don't show a health status
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: \\\`sudo gitlab-rake gitlab:env:info\\\`) (For installations from source run and paste the output of: \\\`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\\\`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of: \`sudo gitlab-rake gitlab:check SANITIZE=true\`) (For installations from source run and paste the output of: \`sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true\`) (we will only investigate if the tests are passing)
Possible fixes
Edited by Melissa Ushakov