jira icon indicating copy to clipboard operation
jira copied to clipboard

Issue createmeta will fail from Jira 9+

Open Ry-DS opened this issue 1 year ago • 2 comments

Problem trying to solve

If anyone tries to use this library for the createmeta end point on a Jira server running v9+, the function will fail. Check out https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html for more details.

The culprit function: https://github.com/pycontribs/jira/blob/main/jira/client.py#L1725-1766

Possible solution(s)

You can see an example solution here: https://github.com/atlassian-api/atlassian-python-api/pull/1031

Alternatives

You will need to write your own api requests if you want to use the createmeta endpoint, as it will fail if you use the latest version of Jira.

Additional Context

No response

Ry-DS avatar Aug 16 '22 08:08 Ry-DS

In addition to the deprecation warning can raise a sensible exception by checking the jira version if run on a Jira 9+

adehad avatar Aug 16 '22 19:08 adehad

@adehad please review #1503, I'm open to discussion and implementation of all required suggestion

dshvedchenko avatar Sep 23 '22 11:09 dshvedchenko

I've opened and alternative pull request, please review: https://github.com/pycontribs/jira/pull/1527

pmilosev avatar Nov 08 '22 23:11 pmilosev