How can I have a parent card marked as "Done" if all their sub-tasks are complete
We are using the card view to provide use case testing for our clients. Currently, the sub-tasks roll up to a parent row which makes the card. However, when sub-tasks are marked done (using the checkbox functionality in cards), I can't figure out how to have the parent row automatically mark complete.
I used conditional formatting to have those checked as done turn green and then unchecked red. Currently, the card remains red even if all sub-tasks are checked as done.
Best Answer
-
Enter the following into the parent row checkbox
=IF(COUNTIFS(CHILDREN(), 1) = COUNTIFS(CHILDREN(), OR(@cell = 1, @cell <> 1)), 1)
Basically this counts how many are checked and compares to how many should be checked. If the numbers match that means they are all checked and will then check the parent row box.
Answers
-
Enter the following into the parent row checkbox
=IF(COUNTIFS(CHILDREN(), 1) = COUNTIFS(CHILDREN(), OR(@cell = 1, @cell <> 1)), 1)
Basically this counts how many are checked and compares to how many should be checked. If the numbers match that means they are all checked and will then check the parent row box.
-
I found this question/answer when trying to mark a Parent task status "Complete" if all sub tasks were complete. I kept running into an issue with the COUNT(CHILDREN()) function on Parent tasks so going to post this in case anyone else finds their way here:
=IF((COUNTIFS(CHILDREN(), "Complete")) = (COUNT(CHILDREN([Task Name]@row))), "Complete", "")
-
@Daniel Hampshire Which portion are you referring to, and which issue were you running into?
-
@Daniel Hampshire Thank you for the formula! Worked perfectly and solved my problem quickly.
-
Thank you this formula really helped
-
The formula here marks everything as Completed on my smartsheet:
=IF((COUNTIFS(CHILDREN(), "Complete")) = (COUNT(CHILDREN([Task Name]@row))), "Complete", "")
What I want is for the parent to be marked completed if all its children are completed and if not, I want the children to keep the status they have
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!