AtlassianPS / JiraPS

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

Issue with New-JiraIssue cmdlet after Jira Update (JIRA Service Management Application v5.4.12, Jira V9.4.12) #490

Open christiangemesi opened 7 months ago

christiangemesi commented 7 months ago

I'm currently facing an issue with a PowerShell script that interacts with our Reservation API and creates new Jira issues using the New-JiraIssue cmdlet. Since the recent Jira update, I'm encountering the following error:

Problem very simplified:

New-JiraIssue -Project PERS -IssueType Personalisierung -Credential $Cred -Summary 'Test issue from PowerShell'

Error Message:

The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: You must specify an object for the Get-Member cmdlet.

Interestingly, the following code snippet works perfectly fine:

$JQLQuery = 'project = Personalisierung AND status != Abgeschlossen AND status != Zurückgestellt'
$Issues = Get-JiraIssue -Query $JQLQuery -Credential $Credential
Write-Host $Issues # Outputs a list of issues

It seems to be related to the New-JiraIssue cmdlet specifically after the recent Jira update.