Whenever in an action brought under this chapter the legal title is in controversy, the issue shall be triable of right by a jury.