Package com.atlassian.jira.rest.client.domain

Examples of com.atlassian.jira.rest.client.domain.TimeTracking


  @Override
  public TimeTracking parse(JSONObject json) throws JSONException {
    final Integer originalEstimateMinutes = JsonParseUtil.parseOptionInteger(json, "timeoriginalestimate");
    final Integer timeRemainingMinutes = JsonParseUtil.parseOptionInteger(json, "timeestimate");
    final Integer timeSpentMinutes = JsonParseUtil.parseOptionInteger(json, "timespent");
    return new TimeTracking(originalEstimateMinutes, timeRemainingMinutes, timeSpentMinutes);
  }
View Full Code Here


      worklogs = parseOptionalArray(shouldUseNestedValueAttribute, s, new JsonWeakParserForJsonObject<Worklog>(worklogJsonParser), FIELDS, WORKLOG_FIELD.id);
    }

    final BasicWatchers watchers = getOptionalField(shouldUseNestedValueAttribute, s,
        isJira5x0OrNewer ? WATCHER_FIELD.id : WATCHER_PRE_5_0_FIELD.id, watchersJsonParser);
    final TimeTracking timeTracking = getOptionalField(shouldUseNestedValueAttribute, s, TIMETRACKING_FIELD.id,
        isJira5x0OrNewer ? new TimeTrackingJsonParserV5() : new TimeTrackingJsonParser());

    final Set<String> labels = Sets.newHashSet(parseOptionalArrayNotNullable(shouldUseNestedValueAttribute, s,
        jsonWeakParserForString, FIELDS, LABELS_FIELD.id));
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.domain.TimeTracking

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.