The name "John Doe", often spelled "Doo," along with "Richard Roe" or "Roo" were regularly invoked in English legal instruments to satisfy technical requirements governing standing and jurisdiction, beginning perhaps as early as the reign of England's King Edward III (1312–1377).
Other obsolete fictitious names for a person involved in litigation under English law were John-a-Noakes, or John Noakes/Nokes and John-a-Stiles/John Stiles.
The Oxford English Dictionary states that John Doe is "the name given to the fictitious lessee of the plaintiff, in the (now obsolete in the UK) mixed action of ejectment, the fictitious defendant being called Richard Roe".
This particular use became obsolete in the UK in 1852:
As is well known, the device of involving real people as notional lessees and ejectors was used to enable freeholders to sue the real ejectors. These were then replaced by the fictional characters John Doe and Richard Roe. Eventually the medieval remedies were (mostly) abolished by the Real Property Limitation Act of 1833; the fictional characters of John Doe and Richard Roe by the Common Law Procedure Act 1852; and the forms of action themselves by the Judicature Acts 1873-75."
Secretary of State for Environment, Food, and Rural Affairs (Respondent) v Meier and another(FC) (Appellant) and others and another (FC)(Appellant) and another (2009).
The term 'John Doe Injunction' (or John Doe Order) is used in the UK to describe an injunction sought against someone whose identity is not known at the time it is issued:
"8.02 If an unknown person has possession of the confidential personal information and is threatening to disclose it, a 'John Doe' injunction may be sought against that person. This form of injunction was used for the first time since 1852 in the United Kingdom when lawyers acting for JK Rowling and her publishers obtained an interim order against an unidentified person who had offered to sell chapters of a stolen copy of an unpublished Harry Potter novel to the media".
Unlike in the United States the name (John) Doe does not actually appear in the formal name of the case, for example: X & Y v Persons Unknown  HRLR 4.