30th United Kingdom Parliament. 31st United Kingdom Parliament]
Donnelly was first elected as member of the Irish Parliamentary Party at the by-election of 2 February 1918, and re-elected in the 1918 United Kingdom general election, representing the South Armagh constituency.