I am trying to access JIRA issue details using jsonlite library as follows in vain:
jiradata <- fromJSON("https://xxxxxx.atlassian.net/rest/api/latest/search?jql=project=DATAX AND key=DATAX-1234")
I get the following error:
Error in open.connection(con, "rb") : HTTP error 400.
What am I missing here?
Have you tried encoding the url? Something like:
- https://INSTANCE.atlassian.net/rest/api/latest/search/?jql=key%20%3D%20DATAX-1234%20AND%20project%20%3D%20DATAX
Also, please notice that the project key is already included in the issue key... your query could just be:
- https://INSTANCE.atlassian.net/rest/api/latest/search/?jql=key%20%3D%20DATAX-1234
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.