How to display Leaves?

I want to display leaves for particular user. (Suppose, Admin take leave on 19, 27 to 28)
For leaves i created project named “Leaves” with it’s tasks as leaves (1st task with duration 19 to 19, 2nd task with duration 27 to 28)

Now, I don’t want to create project and tasks for leaves and want to display leaves how it’s possible?
I knew about addTaskLayer( … layer.html)

How can i done with addTaskLayer?


You can create array with start and end dates of leaves and display leaves according to these dates:

Thanks :slight_smile: , Polina