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

Define additional string for the API path in the url builder #49

Closed
Chadwiki opened this issue May 27, 2014 · 7 comments
Closed

Define additional string for the API path in the url builder #49

Chadwiki opened this issue May 27, 2014 · 7 comments
Assignees
Milestone

Comments

@Chadwiki
Copy link

I would like to be able to use another url string for the API Builder function.

Currently its defined in JIRA5RestClient.java as: return baseURL + "rest/api/2/";

I would like to be able to define and use "rest/api/latest/"

@velias
Copy link
Member

velias commented May 28, 2014

latest is synonym for 2 in current jiras (somewhere from 5.x to 6.2 series). I thought about what to use during JIRA5RestClient implementation, and I decided to use 2 instead of latest, because client is tuned to work with this version of API. latest may be changed to new API version later by Atlassian, which may be incompatible with this client.
What is your reason to use latest instead of 2?

@Chadwiki
Copy link
Author

The REST API path "latest" works with two of the other jira systems. The use of 2 does not...
I have tested CURL's with "rest/api/latest"
Currently the river is failing: "Failed JIRA REST API call"

@velias
Copy link
Member

velias commented May 29, 2014

Which "other" jira systems do you mean? Which version of jira is there?
If API version 2 is not supported on these jiras then latest probably means version 1 or some beta or how it was called for older jiras before 2 has been created. And I'm really not sure the river will work agains these older APIs.

@Chadwiki
Copy link
Author

I am gathering more information from the Jira System Owners.
I cant even try with out the URL option... :-/

@Chadwiki
Copy link
Author

Chadwiki commented Jun 3, 2014

Jira versions 4.2 and 5.2.
Currently there is a restriction of 2 on our system, forcing the use of latest.

@velias
Copy link
Member

velias commented Jun 5, 2014

OK, I can extend river to allow use of latest instead of 2 by configuration change, but I can't assure river will work correctly in this case.

@velias velias added this to the 1.5.6 milestone Jun 6, 2014
@velias velias self-assigned this Jun 6, 2014
velias added a commit that referenced this issue Jun 6, 2014
@velias
Copy link
Member

velias commented Jun 6, 2014

Implemented and released as river 1.5.6. See new jira/restApiVersion config param.

@velias velias closed this as completed Jun 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants