Hi,
are there any limits for POST method in creating/getting results for sub-task? I am using Powershell 7.2.
I have read that in Powershell I cannot directly increase buffer size.
I am trying to use Invoke-RestMethod to create simple sub-task in Jira's task:
$issue = @{
fields = @{
project = @{
key = $jiraProjectKey
}
parent = @{
key = $jiraParentIssueKey
}
summary = "test"
description = "test"
issuetype = @{
name = $jiraIssueType
}
}
}
$body = $issue | ConvertTo-Json -Depth 10
# Make the API call using Invoke-RestMethod
$response = Invoke-RestMethod -Uri $jiraUrl -Headers $headers -Method POST -Body $body
$result = $response | ConvertTo-Json -Depth 10
Write-Output "Incident Created: $($result)"
}
As a reponce I am getting:
Stream size is more than 1 MB, upload canceled.