Commit f81513284cf7aa4a98c601d6877b7188e915967c

Authored by Jacek Malolepszy
1 parent bbe6a628

Add functionality change billed hours (codestyle)

@@ -14,9 +14,7 @@ import org.apache.http.auth.AuthenticationException; @@ -14,9 +14,7 @@ import org.apache.http.auth.AuthenticationException;
14 import pl.com.it_crowd.youtrack.api.rest.Issues; 14 import pl.com.it_crowd.youtrack.api.rest.Issues;
15 15
16 import javax.xml.bind.JAXBException; 16 import javax.xml.bind.JAXBException;
17 -import java.io.BufferedReader;  
18 import java.io.IOException; 17 import java.io.IOException;
19 -import java.io.InputStreamReader;  
20 import java.net.MalformedURLException; 18 import java.net.MalformedURLException;
21 import java.net.URL; 19 import java.net.URL;
22 import java.security.GeneralSecurityException; 20 import java.security.GeneralSecurityException;
@@ -93,7 +91,8 @@ public class YoutrackAPI { @@ -93,7 +91,8 @@ public class YoutrackAPI {
93 return result; 91 return result;
94 } 92 }
95 93
96 - public void setTotalBilledHours(String issueSignature, Long billedHours) { 94 + public void setTotalBilledHours(String issueSignature, Long billedHours)
  95 + {
97 String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute"; 96 String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute";
98 ArrayList<NameValuePair> requestParameters = new ArrayList<NameValuePair>(); 97 ArrayList<NameValuePair> requestParameters = new ArrayList<NameValuePair>();
99 requestParameters.add(new NameValuePair("command", "Billed hours " + billedHours)); 98 requestParameters.add(new NameValuePair("command", "Billed hours " + billedHours));
@@ -108,7 +107,8 @@ public class YoutrackAPI { @@ -108,7 +107,8 @@ public class YoutrackAPI {
108 } 107 }
109 } 108 }
110 109
111 - public void setTotalIssueDuration(String issueSignature, Long issueTotalDuration){ 110 + public void setTotalIssueDuration(String issueSignature, Long issueTotalDuration)
  111 + {
112 String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute"; 112 String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute";
113 ArrayList<NameValuePair> requestParameters = new ArrayList<NameValuePair>(); 113 ArrayList<NameValuePair> requestParameters = new ArrayList<NameValuePair>();
114 requestParameters.add(new NameValuePair("command", "Real completion time " + issueTotalDuration)); 114 requestParameters.add(new NameValuePair("command", "Real completion time " + issueTotalDuration));
Please register or login to post a comment