AtlassianPS / JiraPS

PowerShell module to interact with Atlassian JIRA
https://AtlassianPS.org/module/JiraPS
MIT License
321 stars 131 forks source link

Not able to update the Component field #445

Open hmagnanao opened 2 years ago

hmagnanao commented 2 years ago

We are trying to update the Component field using powershell and the code does not give an error but we can't seem to be able to update the field in Jira. this is the snippet code:

$crparms = @{
    Project = "FM"
    IssueType = "CR"
    Summary = $summ
    Description = $desc
    Fields = @{
        "Case Number(s)" = $case
        customfield_11004 = $ptcid.padleft(6,"0")
        #components = @($component)
        **components = @(@{value = $component})**

Any help would be appreciated.