const body = `{
"tenant": {},
"tenantId": "string",
"organization": {},
"organizationId": "string",
"sentTo": "string",
"deletedAt": "2018-11-21T06:20:32.232Z",
"createdAt": "2018-11-21T06:20:32.232Z",
"updatedAt": "2018-11-21T06:20:32.232Z",
"id": "string",
"isActive": true,
"isArchived": false,
"archivedAt": "2018-11-21T06:20:32.232Z",
"action": 1,
"taskFrom": {
"deletedAt": "2018-11-21T06:20:32.232Z",
"createdAt": "2018-11-21T06:20:32.232Z",
"updatedAt": "2018-11-21T06:20:32.232Z",
"id": "string",
"isActive": true,
"isArchived": false,
"archivedAt": "2018-11-21T06:20:32.232Z",
"tenantId": "string",
"organizationId": "string",
"title": "string",
"description": "string",
"status": "string",
"priority": "string",
"size": "string",
"issueType": "string",
"estimate": 0,
"dueDate": "2024-01-15T09:30:00Z",
"public": true,
"startDate": "2024-01-15T09:30:00Z",
"resolvedAt": "2024-01-15T09:30:00Z",
"version": "string",
"isDraft": true,
"isScreeningTask": true,
"parentId": "string",
"project": {},
"projectId": "string",
"organizationSprint": {},
"organizationSprintId": "string",
"taskStatus": {},
"taskStatusId": "string",
"taskSize": {},
"taskSizeId": "string",
"taskPriority": {},
"taskPriorityId": "string",
"taskType": {
"deletedAt": "2018-11-21T06:20:32.232Z",
"createdAt": "2018-11-21T06:20:32.232Z",
"updatedAt": "2018-11-21T06:20:32.232Z",
"id": "string",
"isActive": true,
"isArchived": false,
"archivedAt": "2018-11-21T06:20:32.232Z",
"tenantId": "string",
"organizationId": "string",
"name": "string",
"value": "string",
"description": "string",
"icon": "string",
"color": "string",
"isDefault": false,
"isSystem": false,
"imageId": "string",
"projectId": "string",
"organizationTeamId": "string"
},
"taskTypeId": "string",
"tags": [
[]
],
"members": [
[]
],
"teams": [
[]
],
"modules": [
[]
]
},
"taskFromId": "string",
"taskTo": {},
"taskToId": "string"
}`;
const response = await fetch('http://localhost:3000/api/task-linked-issue', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json',
},
body,
});
const data = await response.text();