congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FieldInput.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
com.atlassian.jira.rest.client.api.domain.input.FieldInput

Best Java code snippets using com.atlassian.jira.rest.client.api.domain.input.FieldInput.getId (Showing top 6 results out of 315)

origin: com.atlassian.jira/jira-rest-java-client-api

/**
 * Puts given FieldInput into fields collection.
 * <p>
 * <strong>Recommended</strong> way to set field value is to use {@link IssueInputBuilder#setFieldValue(String, Object)}.
 *
 * @param fieldInput FieldInput to insert.
 * @return this
 */
public IssueInputBuilder setFieldInput(FieldInput fieldInput) {
  fields.put(fieldInput.getId(), fieldInput);
  return this;
}
origin: com.atlassian.jira/jira-rest-java-android-client-api

/**
 * Puts given FieldInput into fields collection.
 * <p>
 * <strong>Recommended</strong> way to set field value is to use {@link IssueInputBuilder#setFieldValue(String, Object)}.
 *
 * @param fieldInput FieldInput to insert.
 * @return this
 */
public IssueInputBuilder setFieldInput(FieldInput fieldInput) {
  fields.put(fieldInput.getId(), fieldInput);
  return this;
}
origin: com.atlassian.jira/jira-rest-java-client-core

  @Override
  public JSONObject generate(Iterable<FieldInput> fieldInputs) throws JSONException {
    final JSONObject fields = new JSONObject();
    if (fieldInputs != null) {
      for (final FieldInput field : fieldInputs) {
        final Object fieldValue = (field.getValue() == null) ? JSONObject.NULL
            : generator.generateFieldValueForJson(field.getValue());

        fields.put(field.getId(), fieldValue);
      }
    }
    return fields;
  }
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  @Override
  public JSONObject generate(Iterable<FieldInput> fieldInputs) throws JSONException {
    final JSONObject fields = new JSONObject();
    if (fieldInputs != null) {
      for (final FieldInput field : fieldInputs) {
        final Object fieldValue = (field.getValue() == null) ? JSONObject.NULL
            : generator.generateFieldValueForJson(field.getValue());

        fields.put(field.getId(), fieldValue);
      }
    }
    return fields;
  }
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  @Override
  public JSONObject generate(IssueInput issue) throws JSONException {
    final JSONObject jsonObject = new JSONObject();
    final JSONObject fields = new JSONObject();

    if (issue != null && issue.getFields() != null) {
      for (final FieldInput field : issue.getFields().values()) {
        if (field.getValue() != null) {
          fields.put(field.getId(), complexIssueInputFieldValueJsonGenerator.generateFieldValueForJson(field
              .getValue()));
        }
      }
    }

    jsonObject.put("fields", fields);
    return jsonObject;
  }
}
origin: com.atlassian.jira/jira-rest-java-client-core

@Override
public JSONObject generate(final IssueInput issue) throws JSONException {
  final JSONObject jsonObject = new JSONObject();
  final JSONObject fields = new JSONObject();
  if (issue != null && issue.getFields() != null) {
    for (final FieldInput field : issue.getFields().values()) {
      if (field.getValue() != null) {
        fields.put(field.getId(), complexIssueInputFieldValueJsonGenerator.generateFieldValueForJson(field
            .getValue()));
      }
    }
  }
  jsonObject.put("fields", fields);
  // Add entity properties
  final JSONArray entityProperties = new JSONArray();
  if (issue != null && issue.getProperties() != null) {
    for (final PropertyInput p : issue.getProperties()) {
      final JSONObject property = new JSONObject();
      property.put("key", p.getKey());
      property.put("value", new JSONObject(p.getValue()));
      entityProperties.put(property);
    }
  }
  jsonObject.put("properties", entityProperties);
  return jsonObject;
}
com.atlassian.jira.rest.client.api.domain.inputFieldInputgetId

Popular methods of FieldInput

  • <init>
  • getValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Join (org.hibernate.mapping)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now