Original Question (answer below):
Howdy everyone,
I would love some help (if you have the time to give it) with grabbing some stuff from the JIRA API.
Currently I am using this path without any problems (1), but if I use the 2’nd path shown below, I always get a, “Page Unavailable” error (2).
1: /rest/api/2/search?jql=
2: /rest/api/2/version/17615
Jira Documentation for Reference: (GET /rest/api/2/version/{id})
I’ve also tried the following without any luck:
/rest/api/2/version/"17615"
/rest/api/2/version/?id=17615
/rest/api/2/version/?id="17615"
/rest/api/2/version/{id:17615}
/rest/api/2/version/id:17615
/rest/api/2/version/id=17615
Any thoughts are appreciated!
Edit:
I should mention that I am building out the API call in Google Chrome to make sure the path works before I start coding. Not sure if that would play into this or not.
Edit #2:
I don’t know why this is working, randomly as I type this, maybe there was a cache error, but now this is working:
/rest/api/2/version/17615
Answer
Edit #3 (a few months later and a lot more experience): I think the hangup is by using this rather than this. The second one works every time for me now, and it’s dynamic, there is no reason to define the API version when latest exists.
This is better than
/rest/api/latest/version/17615
this…
/rest/api/2/version/17615