Hello,
Im using JiraPS powershell module to interact with the tickets. I need to set a customfield value, the type is single-select. My syntax is exactly as described in the guide here https://atlassianps.org/docs/JiraPS/about/custom-fields.html
$field = @{
customfield_17700 = { id = 40409 }
}
or
$field = @{
customfield_17700 = { value = "Myvalue" }
}
But I always get this error:
Invoke-JiraMethod :
customfield_17700
-----------------
Could not find valid 'id' or 'value' in the Parent Option object.
At C:\lm\scripts\jira\lib\JiraPS.psm1:5505 char:21
+ Invoke-JiraMethod @parameter
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (:) [Invoke-JiraMethod], RuntimeException
+ FullyQualifiedErrorId : InvalidResponse.Status400,Invoke-JiraMethod
Any help would be appreciated.
Thanks