Hello all,
we are really trouble to integrate one sample application to jira. and finally we configured using consumer key and public key. now I am trying to get the project list in jira using java . but i got the empty string only.
https://domain_name.atlassian.net/rest/api/3/project
I have tried this url and also pass the username and api token for basic authentication .but it return empty list.I have mentioned the code below.
HttpResponse<JsonNode> response = Unirest.get("https://<Domain_name>.atlassian.net/rest/api/3/project")
.basicAuth("username", "<api_token>")
.header("Accept", "application/json")
.asJson();
System.out.println(response.getBody());