diff --git a/src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java b/src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java index bf4c882..b727810 100644 --- a/src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java +++ b/src/main/java/pl/com/it_crowd/youtrack/api/YoutrackAPI.java @@ -14,9 +14,7 @@ import org.apache.http.auth.AuthenticationException; import pl.com.it_crowd.youtrack.api.rest.Issues; import javax.xml.bind.JAXBException; -import java.io.BufferedReader; import java.io.IOException; -import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.security.GeneralSecurityException; @@ -93,7 +91,8 @@ public class YoutrackAPI { return result; } - public void setTotalBilledHours(String issueSignature, Long billedHours) { + public void setTotalBilledHours(String issueSignature, Long billedHours) + { String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute"; ArrayList requestParameters = new ArrayList(); requestParameters.add(new NameValuePair("command", "Billed hours " + billedHours)); @@ -108,7 +107,8 @@ public class YoutrackAPI { } } - public void setTotalIssueDuration(String issueSignature, Long issueTotalDuration){ + public void setTotalIssueDuration(String issueSignature, Long issueTotalDuration) + { String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute"; ArrayList requestParameters = new ArrayList(); requestParameters.add(new NameValuePair("command", "Real completion time " + issueTotalDuration));