LONDON — A British woman who in a drunken fit tried to open the door of a passenger plane thousands of feet above the North Sea has been jailed for two years and barred for life from the airline, officials said.

The woman, Chloe Haines, was on an evening flight with Jet2, a British budget airline, from Stansted Airport, east of London, bound for Dalaman, in southwestern Turkey, when she leapt for a door of the plane, scratched a member of the crew and shouted, “I’m going to kill you all,” according to the BBC.

Fellow passengers helped the plane crew restrain Ms. Haines, a spokesman for Jet2 told The New York Times in July. Military jets were scrambled to escort the plane back to Britain, where she was arrested.

In testimony on Wednesday at Chelmsford Crown Court in England, “the prosecution said that she was drunk, loud and argumentative,” her lawyer, Oliver Saxby, said in an email on Thursday.