Sub task not in Time Spent (time sheet)

When I use sub tasks only the main task shows in the Time Spent (the option in the left menu, not in the project card).
Is it a configuration option or a bug?