Sometimes you may find it useful to hide some tasks, based on dfferent conditions to keep your Gantt Chart clear. In this article, we will show you how to do it.
For example, you have a Gantt Chart showing dozens of User Stories, but some of them are already Verified, and you don't need to see them on a Gantt anymore.
So to make it look nice and clean we can hide user stories that have status 'verified'
To do so first, prepare a Gantt Chart, and then put a little snippet to the Item Script:
if(wi.getType().getId()==="userstory" && wi.getStatus().getId()==="verified"){ task.hide=true; }
As you can see now all verified user stories are hidden from the Gantt Chart.
Of course, work items do not need to be called the same, you can change it depending on your project configuration.
Note: please be aware of using only straight quotation marks "" and not lopsided “”
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article