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

Examples of com.atlassian.jira.rest.client.api.domain.FieldType


public class ChangelogItemJsonParser implements JsonObjectParser<ChangelogItem> {
  @Override
  public ChangelogItem parse(JSONObject json) throws JSONException {
    final String fieldTypeStr = JsonParseUtil.getNestedString(json, "fieldtype");
    final FieldType fieldType;
    if ("jira".equalsIgnoreCase(fieldTypeStr)) {
      fieldType = FieldType.JIRA;
    } else if ("custom".equalsIgnoreCase(fieldTypeStr)) {
      fieldType = FieldType.CUSTOM;
    } else {
View Full Code Here


    final String id = jsonObject.getString("id");
    final String name = jsonObject.getString("name");
    final Boolean orderable = jsonObject.getBoolean("orderable");
    final Boolean navigable = jsonObject.getBoolean("navigable");
    final Boolean searchable = jsonObject.getBoolean("searchable");
    final FieldType custom = jsonObject.getBoolean("custom") ? FieldType.CUSTOM : FieldType.JIRA;
    final FieldSchema schema = jsonObject.has("schema") ? schemaJsonParser.parse(jsonObject.getJSONObject("schema")) : null;
    return new Field(id, name, custom, orderable, navigable, searchable, schema);
  }
View Full Code Here

TOP

Related Classes of com.atlassian.jira.rest.client.api.domain.FieldType

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.