AtlassianPS / JiraPS

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

New-JiraIssue @parameters -Credential $Creds Invoke-JiraMethod : Issue Does Not Exist #469

Open sysadmin24 opened 1 year ago

sysadmin24 commented 1 year ago

Description

Module has been running fine up until we updated Jira to 9.4.3. Now when we try to create a new issue it can't recognize the issue types at all. I've tried them all.

New-JiraIssue @parameters -Credential $Creds - -- Invoke-JiraMethod : Issue Does Not Exist

Steps To Reproduce

Create a new ticket and this message comes up. Tried with no issue type, any issue type that came up in the get-issuetype list, and IssueType = "", but none work.

Expected behavior

Ticket should be created.

Screenshots

New-JiraIssue @parameters -Credential $Creds Invoke-JiraMethod : Issue Does Not Exist At C:\Users\markladmin\Documents\WindowsPowerShell\Modules\jiraps.2.14.6.old\JiraPS.psm1:2012 char:19

Please assist if possible.

Rogueit commented 1 year ago

Generally when I get issue does not exist, its because something is wrong in my $cred variable.

Here is how i creating my cred

$reporter = "bob@aol.com"
$API = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
$PWord = ConvertTo-SecureString -String $API -AsPlainText -Force
$Cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $reporter, $PWord
borix commented 1 year ago

This may be related to the createmeta REST endpoint being removed in version 9.x:

Createmeta REST endpoint to be removed

This module would have to be updated to use the new endpoint.

rnelson0 commented 11 months ago

There have been no new releases since 2020, is Atlassian looking into a new release? I know I can probably figure out how to assemble a copy of the latest code manually, but I can't even tell if this is fixed in HEAD, much less distribute any such fix to coworkers.

claudiospizzi commented 7 months ago

Same issue here. Is related to the change @borix mentioned.

We've created a workaround for our use case, and we use this internally. Not sure if this covers all cases and if it is a complete workaround. Anyway, if someone finds that helpful: https://github.com/arcadech/JiraPS/commit/5d2805357475c4564ef013d4a36e497d23f68595

ChefkeGremmen commented 3 months ago

@claudiospizzi ; thank you so much for this. I hope the maintainers find room to get the CICD pipeline up and running again so your pull-request can get processed. Your change fixed our situation.