A Brisbane man was on a morning bike ride when a screwdriver-wielding man in the grip of a psychotic episode attempted to kill him, a court has been told.
The man was stabbed 10 times by Joshua Joseph Tempany as he crossed a bridge at a park in Cooparoo in November 2015 on his way to join his wife and two children.
He had told his family to ride ahead while he locked their home.
Mr Tempany pleaded guilty in the Brisbane Supreme Court on Monday to attempted murder and seriously assaulting police.
Prosecutor Matt Le Grand told the court Mr Tempany jumped up at the man as he crossed the bridge and put him in a headlock.