Hi,
we have an automated process for synchronizing data and version information with a supplier.
The CSV export and import I was able to automate with the PowerShell JiraPS module, great stuff by the way.
Now we have 2 fields (Requested and Affected versions) which have multiple allowed values in it. I need to update those values and I do not have a clue on how to do it.
At least with the following commands I see a list with this allowed values:
$FieldProjectData = Get-JiraIssueCreateMetadata -Project "ProjectKey" -IssueType "IssueTypeName" -Credential $Credentials
# Affected Version number 4 in this list is one of the fields!
$FieldProjectData[4]AllowedValues
But in the end I see details for every field:
self : https://blabla.com/rest/api/2/customFieldOption/blabla
value : MyValue
id : blabla
disabled : False
But how can I add a new allowed Option to this Custom field? There seems to be a link for every allowed option and I really dont get it? Any help would be great because I am completely stuck here.
If anyone had such and update and can provide a working example this would be great. I mean also every allowed value seems to have an id and I believe this ID keys should not be messed around with, but like I said I dont get it and usually I always find a solution.
Thank you and kind regards
Manfred