I am preparing a PowerShell script to generate an issue. The error I got is:
"errorMessages":[],"errors":{"Application":"data was not an array"}}The "Application" field (customfield_11040) is a dropdown menu allowing multiple selection. The values are "HR system","IT system","Purchasing system" etc.
My Powershell compose the json body like below:
$messageBody = @{
fields = @{
project = @{
key = "IT"
}
summary = "test create issue"
description = "Creating of an issue using project keys and issue type names using the REST API"
issuetype = @{
name = "Bug"
}
customfield_11043 = @{
name="test"
}
#application field
customfield_11040 = @{
Application="HR system"
}
}
}Please advice how can I check the structure of customfield_11040?