method for getting nesting level in tree for given task id is introduced