Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use JiraPS to close Issues with resolution duplicate

Kluger, Steffen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2023

as described in 
https://atlassianps.org/docs/JiraPS/commands/Invoke-JiraIssueTransition/ i can call a transition to close an issue. Unfortunately I did not manage to set the resolution when doing this.

if I query other closed Issues, resolution is given in German translation as "Duplikat"
According example 4 of documentation I would expect to work like this:

$transitionFields = @{'Resolution' = 'Duplikat'}
Invoke-JiraIssueTransition -issue 'MJOBS-27030' -Transition 601 -Fields $transitionFields

but tried with resolution name in english, too
$transitionFields = @{'Resolution' = 'duplicate'}

But always returning error message:
Invoke-JiraMethod :
resolution
----------
Specify the Resolution (id or name) in the string format
In WindowsPowerShell\Modules\jiraps\2.14.7\JiraPS.psm1:3204 Zeichen:9
+ Invoke-JiraMethod @parameter
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (:) [Invoke-JiraMethod], RuntimeException
+ FullyQualifiedErrorId : InvalidResponse.Status400,Invoke-JiraMethod

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events