**我需要使用java代码更新jira问题**
以下代码使用
String url ="http://IP/rest/api/latest/issue/test-6120";
String auth = new String(Base64.encode("test:test"));
String data ="{\"fields\":{\"reporter\":{\"name\":\"vishnuk\"}}}";
{
Client client = Client.create();
WebResource webResource = client.resource(url);
ClientResponse response = webResource.header("Authorization", "Basic " + auth).type("application/json")
.accept("application/json").put(ClientResponse.class, data);
int statusCode = response.getStatus();
}
System.out.print(statusCode);
}
高于此代码我得到204 http错误
有人可以告诉我,我做了什么错,以及我必须做些什么改正