The BBC's UK news editor Gary Smith has been appointed head of news at BBC Scotland.

He replaces John Boothman, who left the role in June this year following a row over the handling of grievance and bullying allegations.

Mr Smith is expected to take up his new role at the start of the New Year.

The director of BBC Scotland, Ken MacQuarrie, said Mr Smith brings with him "a track record of leading and inspiring large teams".

Pete MacRae will continue as acting head of BBC Scotland news until Mr Smith takes up the post early in the new year.

A graduate in English from Glasgow University who then studied journalism at Cardiff University, Mr Smith is said by the BBC to bring with him "an extensive background of senior leadership experience throughout the broadcasting sector".

Mr Boothman left his position to work on the corporation's Charter renewal bid and came  after union leaders met with BBC management over their concerns over treatment of staff in the Scottish newsroom.  The National Union of Journalists raising the prospect of a ballot of union members for industrial action such as a work to rule if the BBC was unable to reassure staff that significant action was being taken, including moving Mr Boothman from his current post.

Unions' concerns came to ahead after the daughter of one of Scotland's most famous politicians, the late Margo MacDonald, was understood to have successfully made a complaint against Mr Boothman.

The row dated back to February when Mr Boothman and a human resources executive was taped making a series of offensive comments about camerawoman Zoe MacDonald.

Mr Boothman and the executive had believed they were having a private conversation in a broadcasting gallery but did not realise that microphones were on and they could be heard.

BBC sources said the grievance surrounded the comments that were overheard and was not put down formally as a bullying or harassment complaint.

Union officials say the incidents highlighted their concerns about treatment of newsroom staff going back over two years.

As UK news editor for BBC News, Gary runs the home newsgathering team across the UK.

His previous roles in the BBC include editor, political news, and assistant editor on the then Nine O'Clock News.  He also worked as a programme editor and senior political producer at Channel Four News.

“I’ve a passion and commitment for providing accurate, clear, informative, honest journalism with integrity and impartiality and after 30 years in broadcast journalism this is the job I’ve always wanted,” he said.

He worked on the ground on many of the major stories of the eighties and nineties, including the fall of Mrs Thatcher and the end of the Berlin Wall, the Dunblane shootings, and the assassination of Rajiv Gandhi.   Since the turn of the century, he has led teams on stories ranging from the Pope's visit to the UK, the hunt for Raoul Moat, and the Scottish Independence Referendum last year.

In announcing Mr Boothman's departure in an email to staff, BBC Scotland Director Ken MacQuarrie said he would play a "key role focusing on service development for Scotland including our news offer for audiences for the new Charter period".

An internal BBC Scotland staff survey was said to show that only 19% of news and current affairs staff believed bullying complaints against their managers would have a "positive outcome", 20% felt bullying would be fairly dealt with and 16% had confidence in Mr Boothman's decision-making.