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

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • 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