---
title: "Link existing task to issue"
method: POST
path: "/task_tracking/linkTaskToIssueGroup"
---

# Link existing task to issue

`POST /task_tracking/linkTaskToIssueGroup`

Link existing task to issue group

## Request body

- object
  - `issue_group_id` integer, required — The id of the issue group a task should be linked
  - `task_id` string, required — The id of the task that should be linked to the issue group
  - `project_id` string, required — The id of the task tracker project related to the task
  - `scope` 'group' | 'repo' | 'cloud' | 'domain' | 'container' — The scope that relates issues to the task. Default is 'group' that relates all the issues in the issue group to the task
  - `scope_id` integer — The id of the specified scope. Not required when scope is 'group'
  - `integration_id` integer — Optional. The id of the task tracker integration when multiple integrations are available

## Response `200`

The task has been linked to the issue group

- object
  - `success` integer — The integer 1 indicating success

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/revisions/5445e7c21137/schema)
