I am looking for an option to update the "Resolution" filed in jira issue using powershell cmdlet.
We are auto closing the jira issues using Set-JiraIssue and Invoke-JiraIssueTransition comdlets. when we do this the resolution field is setting to unresolved, so tried passing the Resolution values in fields parameter, as the function not validating this field it is throwing an error.
further tried passing it to Invoke-JiraMethod throws below error. do we have an option to update the resolution field.
$headers = @{
self = "https://$($jiraserver)/rest/api/2/resolution/10202"
id = 10202
description = 'The issue has been resolved'
name = 'Resolved'
}
$body = $headers | ConvertTo-Json -Depth 3
$URL = "https://$($jiraserver)/rest/api/latest/issue/1232324"
Invoke-JiraMethod -URI $URL -Method Post -Credential $creds -Body $body -Verbose
