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
Dont understand , so you can or cannot use JIRAPS module to update *resoultion* field?
You can't update the Resolution field directly. You need to create a post-function in the transition that will update the Resolution field when you invoke the transition.
If you have issues that are "Closed" but have Resolution = Empty, you need to create a new transition from Closed to Closed that will set the resolution field to a value. You can then invoke the transition either from a bulk update or from your PowerShell script to set the resolution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So the resolution field should have some default values that comes part of post function at the time of creating an issue, only then we can do transition of values in resolution field. Am I correct?
And this post function should be created by jira administrators?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The list of available Resolution values is set by the Jira Administrator. When the issue is originally created, the Resolution field will be empty. The Jira Administrator will have to update the workflow to add the post-function to the transition that would set the Resolution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to filter tickets based on resolution but cannot filter tickets.
When downloading the excel I am not seeing the resolution field.
Am I looking at wrong fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.