JiraPS icon indicating copy to clipboard operation
JiraPS copied to clipboard

New-JiraIssue with Components failing from June, 2023

Open micheleliberman opened this issue 2 years ago • 0 comments

Jira has moved the components from a custom field to an internal field. This happed around 11 days ago 11th of June, 2023. This has caused New-JiraIssue to fail. The solution was to add a new parameter to function New-JiraIssue in JiraPS.psm1: [Parameter( ValueFromPipelineByPropertyName )] [String[]] $Components, and further down in New-JiraIssue process section, add the components in a format receivable by the Rest 2.0 API: if ($Components) { $requestBody["components"] = [System.Collections.ArrayList]@() foreach ($item in $Components) { $null = $requestBody["components"].Add( @{ id = "$item" } ) } }

micheleliberman avatar Jun 22 '23 12:06 micheleliberman