congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 14 Best Plugins for Eclipse
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