JiraPS icon indicating copy to clipboard operation
JiraPS copied to clipboard

Get-JiraIssueCreateMetadata use outdated endpoint

Open 57effen opened this issue 1 year ago • 2 comments

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

57effen avatar Jan 05 '24 12:01 57effen

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!

andrevdn avatar Feb 23 '24 09:02 andrevdn

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

donprezes avatar Mar 04 '24 09:03 donprezes