When creating the time entry in the ticket, you can choose to which task is the time information to be added to.