module Gitlab::Client::IssueLinks
def create_issue_link(project, issue, target_project_id, target_issue_iid)
-
(Gitlab::ObjectifiedHash)
- Information about created link.
Parameters:
-
target_issue_iid
(Integer
) -- The ID of the target issue. -
target_project_id
(Integer
) -- Project ID the target issue is located in. -
issue
(Integer
) -- The ID of an issue. -
project
(Integer, String
) -- The ID or name of a project.
def create_issue_link(project, issue, target_project_id, target_issue_iid) post("/projects/#{url_encode project}/issues/#{issue}/links", body: { target_project_id: target_project_id, target_issue_iid: target_issue_iid }) end