Atapattu was first elected to parliament at the 8th parliamentary elections in July 1977,[5] representing the United National Party in the Beliatta electorate, where he defeated the sitting member, Mahinda Rajapaksa, by over 6,000 votes. PresidentJ. R. Jayewardene, reluctant to give up the massive majority his party secured in 1977, held a referendum to cancel the 1983 parliamentary elections, and extend the life of the 1977 parliament until 1989. Jayewardene also decreed that all United National Party parliamentarians, whose electoral districts had not supported the referendum, would have to run in a by-election. Atapattu resigned from his seat 10 February 1983[6] but was subsequently successful in the May 1983 by-elections, defeating Rajapaska by nearly 3,000 votes.[7]
Atapattu was appointed the Minister for Colombo Group of Hospitals (a project Ministry under the Ministry of Health) in August 1978.[8] He was then appointed the Minister of Health in the Jayewardene cabinet in 1982[9] and held the position until 1989. At the 1989 parliamentary elections he ran as the United National Party candidate in the Hambantota electorate and was duly elected with 10,381 preference votes (18.35%), behind Rajapkasa's 13,073 preference votes (23.11%).[10] In 18 February 1989 Atapattu was appointed Minister of Labour and Social Welfare as part of the Premadasa cabinet and held the position until 5 January 1990.[11]