public List<WorkLog> getAllWorkLogs() throws JiraException { JSONObject obj; try { URI uri = restclient.buildURI(getRestUri(key) + "/worklog"); JSON json = restclient.get(uri); obj = (JSONObject) json; } catch (Exception ex) { throw new JiraException("Failed to get worklog for issue " + key, ex); } return Field.getWorkLogs(obj, restclient); }
public List<WorkLog> getAllWorkLogs() throws JiraException { JSONObject obj; try { URI uri = restclient.buildURI(getRestUri(key) + "/worklog"); JSON json = restclient.get(uri); obj = (JSONObject) json; } catch (Exception ex) { throw new JiraException("Failed to get worklog for issue " + key, ex); } return Field.getWorkLogs(obj, restclient); }
votes = Field.getResource(Votes.class, fields.get(Field.VOTES), restclient); watches = Field.getResource(Watches.class, fields.get(Field.WATCHES), restclient); workLogs = Field.getWorkLogs(fields.get(Field.WORKLOG), restclient); timeEstimate = Field.getInteger(fields.get(Field.TIME_ESTIMATE)); timeSpent = Field.getInteger(fields.get(Field.TIME_SPENT));
votes = Field.getResource(Votes.class, fields.get(Field.VOTES), restclient); watches = Field.getResource(Watches.class, fields.get(Field.WATCHES), restclient); workLogs = Field.getWorkLogs(fields.get(Field.WORKLOG), restclient); timeEstimate = Field.getInteger(fields.get(Field.TIME_ESTIMATE)); timeSpent = Field.getInteger(fields.get(Field.TIME_SPENT));