[V7] add REST API for issue relations

rebased #686.