[V2] add REST API for issue relations

rebased #668.