# Link this issue to another

Idempotent. The same pair and type returns the existing row with created false and writes nothing. blocked_by is stored as blocks with the two ids swapped. related is stored with the lower id as the source so asking from either issue is the same row. Both issues must be in this issue's team. A blocks link that would close a loop is refused, and so is a duplicate link that would loop back on itself. An issue can be a duplicate of only one other issue.

Canonical: https://easerix.com/docs/developers/api/tasks/issues/createIssueRelation

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="tasks" operations={[{"path":"/v1/issues/{id}/relations","method":"post"}]} />
    </>
  );
}
