Skip to content

[Jira] Usage of jira.add_version #1507

Open
@Hellgringo83

Description

@Hellgringo83

I try to add a new version.
First I can see that the documentation and the implementation of add_version are different (different names for function parameters).

There is a parameter project_key and projecet_id. I know that one of this is deprecated so I just give the same project key to both.

Using this example code results in an exception:

strPrjId = 'TST'

version_data = {
            'name': "TestVersion",
            'project': strPrjId,
            'description': "Just a test description",
            'released': False
}

jira.add_version(project_key= strPrjId, project_id=strPrjId, version = version_data)

Exception:
requests.exceptions.HTTPError: Invalid request payload. Refer to the REST API documentation and try again.

I didn't find any code using this method or an example.

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