Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-JiraIssue with Components failing from June, 2023 #482

Open
micheleliberman opened this issue Jun 22, 2023 · 0 comments
Open

New-JiraIssue with Components failing from June, 2023 #482

micheleliberman opened this issue Jun 22, 2023 · 0 comments

Comments

@micheleliberman
Copy link

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 micheleliberman changed the title Creating a new Jira Issue with Components is failing New-JiraIssue with Components failing from June, 2023 Jun 22, 2023
micheleliberman pushed a commit to micheleliberman/JiraPS that referenced this issue Jun 26, 2023
lipkau pushed a commit that referenced this issue Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant