[V6] add REST API for issue relations

rebased #685.