Skip to content
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

rename_version is not supported yet #1016

Closed
ym1220 opened this issue Apr 30, 2021 · 2 comments
Closed

rename_version is not supported yet #1016

ym1220 opened this issue Apr 30, 2021 · 2 comments
Labels

Comments

@ym1220
Copy link

ym1220 commented Apr 30, 2021

Before raising any bug be sure that you used the latest release and that it still reproduces with the latest master. No other version is supported.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

call the api rename_version as described in API-document
JIRA.rename_version(<JiraProject>,<oldnmae>,<newname>)
  1. Any additional steps or considerations that happen before or after.

Expected behavior
A clear and concise description of what you expected to happen.

Stack Trace

'JIRA' object has no attribute 'rename_version'

Version Information
Python Interpreter: python3
jira-python: 2.0.0
OS: Windows
IPython (Optional):
Other Dependencies:

Additional context
Add any other context about the problem here.

@studioj
Copy link
Collaborator

studioj commented May 13, 2021

you might want to have a look at the version resource

https://github.com/pycontribs/jira/blob/master/jira/resources.py#L873

how to retrieve a version => https://jira.readthedocs.io/en/master/api.html#jira.JIRA.version

jira_client = JIRA("http://atlassian.org")
version_obj = jira_client.version("10513")
version_obj.update(name="new_version_name")

this might be of some help too
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-version-id-put

ssbarnea pushed a commit that referenced this issue May 15, 2021
* adding version to documentation to help out on #1016

* updating param name from **args to **kwargs and adding some test coverage for it

* adding an example in the method documentation

Co-authored-by: Neefs, Jef <jef.neefs@barco.com>
@studioj
Copy link
Collaborator

studioj commented May 24, 2021

@ym1220
closing this issue
See following links in the documentation:

if these items dont solve your question, please reopen and clarify

@studioj studioj closed this as completed May 24, 2021
@ssbarnea ssbarnea added bug and removed feature labels Oct 4, 2021
svermeulen pushed a commit to svermeulen/jira that referenced this issue Oct 31, 2021
…tribs#1039)

* adding version to documentation to help out on pycontribs#1016

* updating param name from **args to **kwargs and adding some test coverage for it

* adding an example in the method documentation

Co-authored-by: Neefs, Jef <jef.neefs@barco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants