[V4] add REST API for issue relations

rebased #671.