Skip to content

[Jira] Usage of jira.add_version #1507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Hellgringo83 opened this issue Mar 10, 2025 · 1 comment
Open

[Jira] Usage of jira.add_version #1507

Hellgringo83 opened this issue Mar 10, 2025 · 1 comment

Comments

@Hellgringo83
Copy link

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.

@gonchik
Copy link
Member

gonchik commented Mar 17, 2025

Hi! I will add that info into doc and example.
Kindly please share the usage is this cloud or or on-prem Jira ?

@gonchik gonchik changed the title Usage of jira.add_version [Jira] Usage of jira.add_version Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants