Skip to content

createmeta issuetypes not supported with Jira Cloud server #2353

@jnweiger

Description

@jnweiger

Bug summary

In https://github.com/pycontribs/jira/blob/main/jira/client.py#L2130:

A check for _is_cloud() rejects accessing the createmeta issutypes endpoint.
According to https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-group-issues:
the Cloud server should support that endpoint.

Are we sure we need to reject access here?

We are using the code in https://github.com/HeinleinSupport/check_mk_extensions/tree/cmk2.3/notifications/jira_heinlein and we find it does not work with jira cloud:

versionNumbers: 1001, 0, 0
developmentType: "Cloud"
buildNumber: 100283

Is there an existing issue for this?

  • I have searched the existing issues

Jira Instance type

Jira Cloud (Hosted by Atlassian)

Jira instance version

1001.0.0.0

jira-python version

main

Python Interpreter version

3.10

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Reproduction steps

# 1. Given a Jira client instance
jira: JIRA
# 2. When I call the function with argument x
jira.the_function(x)
# 3.
...

Stack trace

CRITICAL;jira_heinlein;Unable to query meta info, JIRA response code None, Unsupported JIRA deployment type: Cloud or version: (1001, 0, 0). Use 'createmeta' instead.;Unable to query meta info,

Expected behaviour

The probably works fine with a recent cloud server.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions