congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CustomFieldParams.getValuesForKey
Code IndexAdd Tabnine to your IDE (free)

How to use
getValuesForKey
method
in
com.atlassian.jira.issue.customfields.view.CustomFieldParams

Best Java code snippets using com.atlassian.jira.issue.customfields.view.CustomFieldParams.getValuesForKey (Showing top 6 results out of 315)

origin: com.atlassian.jira.plugins/jira-fisheye-plugin

@Override
public String getValueFromCustomFieldParams(CustomFieldParams customFieldParams) {
  Collection<String> normalParams = customFieldParams.getValuesForKey(null);
  return (normalParams != null && normalParams.contains(WITH_PERFORCE_JOB)
      ? WITH_PERFORCE_JOB
      : WITHOUT_PERFORCE_JOB);
}
origin: com.atlassian.jira/jira-core

@Nullable
private Option extractOptionFromParams(String key, CustomFieldParams relevantParams) throws FieldValidationException
{
  Collection<String> params = relevantParams.getValuesForKey(key);
  if (params != null && !params.isEmpty())
  {
    String selectValue = params.iterator().next();
    if (ObjectUtils.isValueSelected(selectValue) && selectValue != null && !selectValue.equalsIgnoreCase("none"))
    {
      return getOptionFromStringValue(selectValue);
    }
  }
  return null;
}
origin: com.atlassian.jira/jira-core

@Override
public Set<Label> getValueFromCustomFieldParams(CustomFieldParams customFieldParams) throws FieldValidationException
{
  if (customFieldParams == null || customFieldParams.isEmpty())
  {
    return null;
  }
  final Collection<String> normalParams = (Collection<String>) customFieldParams.getValuesForKey(null); //single field types should not scope their parameters
  if (normalParams == null || normalParams.isEmpty())
  {
    return null;
  }
  return convertStringsToLabels(normalParams);
}
origin: com.atlassian.jira/jira-api

public T getValueFromCustomFieldParams(CustomFieldParams relevantParams) throws FieldValidationException
{
  if (relevantParams == null)
  {
    return null;
  }
  Collection normalParams = relevantParams.getValuesForKey(null); //single field types should not scope their parameters
  if (normalParams == null || normalParams.isEmpty())
    return null;
  String singleParam = (String) normalParams.iterator().next();
  if (TextUtils.stringSet(singleParam)) //only validate if the value is set
  {
    return getSingularObjectFromString(singleParam);
  }
  else
  {
    return null;
  }
}
origin: com.atlassian.jira/jira-core

final String childStringValue = getValue(customFieldParams.getValuesForKey(CascadingSelectCFType.CHILD_KEY));
final String parentStringValue = getValue(customFieldParams.getValuesForKey(CascadingSelectCFType.PARENT_KEY));
try
origin: com.atlassian.jira/jira-core

List params = new ArrayList(relevantParams.getValuesForKey(null));
    Collection valuesForChild = relevantParams.getValuesForKey(CHILD_KEY);
    if (valuesForChild != null)
com.atlassian.jira.issue.customfields.viewCustomFieldParamsgetValuesForKey

Popular methods of CustomFieldParams

  • isEmpty
  • containsKey
  • getCustomField
  • getFirstValueForKey
  • getFirstValueForNullKey
  • getKeysAndValues
  • getValuesForNullKey
  • getAllValues
  • put
  • setCustomField
  • transformObjectsToStrings
  • transformObjectsToStrings

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Path (java.nio.file)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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