AtlassianPS / JiraPS

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

Get-JiraIssueCreateMetadata use outdated endpoint #498

Open 57effen opened 6 months ago

57effen commented 6 months ago

https://github.com/AtlassianPS/JiraPS/blame/6499feafb441e34c8b29c1aca4acf20c3999fb40/JiraPS/Public/Get-JiraIssueCreateMetadata.ps1#L24

as you mentioned on https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/#jira-versions-8-4-and-later https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html

the Call should use new REST endpoint http://localhost:8080/rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}

reason for this issue: I got error message "Issue Does Not Exist" on large Jira Instance

andrevdn commented 4 months ago

I've got the same error when getting CreateMetadata. I'm not able to create new issues with New-JiraIssue from the JiraPS libary, because it is calling Get-JiraIssueCreateMetadata within this function and fails.

An updated version of Get-JiraIssueCreateMetadata with the new REST endpoint is welcome!

donprezes commented 4 months ago

Jira-PS module is no longer useable with officially released version.

It would be nice to finally merge commit which fix it: https://github.com/spicy/JiraPS/commit/fc2632c1f21b3867667197ec2c8e77b266e60e69