[in the line of duty] {adj. phr.} Done or happening as part of ajob.
The policeman was shot in the line of duty.
The soldierhad to clean his rifle in the line of duty.