He found himself in Nazi German captivity in 1944, and spent time in a POW camp near Vienna until the end of World War II.
Later, he became leader of the Socialist Union of the Working People mass organization in Kosovo, and was from 1965 to 1967 manager of the Kosovar publishing house Rilindja.
In 1975 he was elected Deputy Speaker of the Yugoslav Federal Assembly, and remained in that position until he became the leader of the League of Communists of Kosovo in 1982.
After Mikulić and his cabinet voluntarily resigned in March 1989, as the first federal ministry in the history of Socialist Yugoslavia, Hasani initially supported the unsuccessful bid of the Milošević loyalist and Serb hardliner Borisav Jović[citation needed], to become the federal PM.
It was contrary to the candidacy of the economically liberal reformist Ante Marković, which was proposed by the republics of Slovenia and Croatia, and finally approved by the Federal Assembly of Yugoslavia, and also by the outgoing presidency, including Hasani himself.