Commit bbe6a628dd3c80de1a53617424834060510d4334
1 parent
bef46c6a
Add functionality change billed hours
Showing
1 changed file
with
15 additions
and
0 deletions
| ... | ... | @@ -93,6 +93,21 @@ public class YoutrackAPI { |
| 93 | 93 | return result; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + public void setTotalBilledHours(String issueSignature, Long billedHours) { | |
| 97 | + String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute"; | |
| 98 | + ArrayList<NameValuePair> requestParameters = new ArrayList<NameValuePair>(); | |
| 99 | + requestParameters.add(new NameValuePair("command", "Billed hours " + billedHours)); | |
| 100 | + try { | |
| 101 | + WebRequest request = new WebRequest(new URL(url), HttpMethod.POST); | |
| 102 | + request.setRequestParameters(requestParameters); | |
| 103 | + webClient.getPage(request); | |
| 104 | + } catch (MalformedURLException e) { | |
| 105 | + e.printStackTrace(); | |
| 106 | + } catch (IOException e) { | |
| 107 | + e.printStackTrace(); | |
| 108 | + } | |
| 109 | + } | |
| 110 | + | |
| 96 | 111 | public void setTotalIssueDuration(String issueSignature, Long issueTotalDuration){ |
| 97 | 112 | String url = serviceLocation + "/rest/issue/" + issueSignature + "/execute"; |
| 98 | 113 | ArrayList<NameValuePair> requestParameters = new ArrayList<NameValuePair>(); | ... | ... |
Please
register
or
login
to post a comment