in the line of duty

idiomPart ofduty

in the line of duty — idiom

1. while doing your job, especially when referring to dangerous or difficult tasks

1.idiom
Definition

while doing your job, especially when referring to dangerous or difficult tasks that are part of a particular profession.

Example

The police officer was injured in the line of duty when she stopped a speeding car.

The paramedic had seen many difficult situations in the line of duty over twenty years.