Tabnine Logo
IssueInputParameters.getActionParameters
Code IndexAdd Tabnine to your IDE (free)

How to use
getActionParameters
method
in
com.atlassian.jira.issue.IssueInputParameters

Best Java code snippets using com.atlassian.jira.issue.IssueInputParameters.getActionParameters (Showing top 20 results out of 315)

origin: com.atlassian.jira/jira-core

private void performAddOperation(CommentJsonBean commentJson, IssueInputParameters parameters, ErrorCollection errors)
{
  parameters.getActionParameters().put(CommentSystemField.CREATE_COMMENT, new String[] { "true" });
  final List<String> commentParams = new ArrayList<String>();
  commentParams.add(commentJson.getBody());
  parameters.getActionParameters().put(IssueFieldConstants.COMMENT, commentParams.toArray(new String[commentParams.size()]));
}
origin: com.atlassian.jira/jira-core

  private void performRemoveOperation(CommentJsonBean commentJson, IssueInputParameters parameters, ErrorCollection errors)
  {
    parameters.getActionParameters().put(CommentSystemField.REMOVE_COMMENT, new String[] { "true" });
    final List<String> commentParams = new ArrayList<String>();
    if (StringUtils.isNotEmpty(commentJson.getId()))
    {
      parameters.getActionParameters().put(CommentSystemField.PARAM_COMMENT_ID, new String[] { commentJson.getId() });
    }
    //The field validation for the comment field only works if there is a body in the action params.
    commentParams.add("DUMMY BODY");
    parameters.getActionParameters().put(IssueFieldConstants.COMMENT, commentParams.toArray(new String[commentParams.size()]));
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

  public void populateCurrentValue(final IssueInputParameters inputParameters, final CopyIssueBean bean, final FieldLayoutItem fieldLayoutItem, final Project project)
  {
    List<String> labels = bean.getLabels();
    if (labels != null && !labels.isEmpty())
    {
      String[] labelArray = new String[labels.size()];
      labels.toArray(labelArray);
      inputParameters.getActionParameters().put(IssueFieldConstants.LABELS, labelArray);
    }
  }
}
origin: com.atlassian.jira/jira-core

  @Override
  protected void finaliseOperation(Collection<String> finalValue, IssueInputParameters parameters, ErrorCollection errors)
  {
    parameters.getActionParameters().put(SystemSearchConstants.forLabels().getFieldId(), finalValue.toArray(new String[finalValue.size()]));
  }
}
origin: com.atlassian.jira/jira-core

@Override
public void validateCreateIssueFields(final JiraServiceContext jiraServiceContext, final Collection<String> providedFields, final Issue issueObject, final FieldScreenRenderer fieldScreenRenderer, final OperationContext operationContext, final IssueInputParameters issueInputParameters, final I18nHelper i18n)
{
  validateCreateIssueFields(jiraServiceContext, providedFields, issueObject, fieldScreenRenderer, operationContext,
      issueInputParameters.getActionParameters(), issueInputParameters.applyDefaultValuesWhenParameterNotProvided(),
      issueInputParameters.skipScreenCheck(), i18n);
}
origin: com.atlassian.jira/jira-core

MutableIssue validateAndSetProject(MutableIssue issue, IssueInputParameters issueInputParameters, Map<String, Object> fieldValuesHolder, ErrorCollection errorCollection, I18nHelper i18n)
{
  issueCreationHelperBean.validateProject(issue, new OperationContextImpl(IssueOperations.CREATE_ISSUE_OPERATION, fieldValuesHolder), issueInputParameters.getActionParameters(), errorCollection, i18n);
  if (!errorCollection.hasAnyErrors())
  {
    issue.setProjectId(issueInputParameters.getProjectId());
  }
  return issue;
}
origin: com.atlassian.jira/jira-core

MutableIssue validateAndSetIssueType(MutableIssue issue, IssueInputParameters issueInputParameters, Map<String, Object> fieldValuesHolder, ErrorCollection errorCollection, I18nHelper i18n)
{
  issueCreationHelperBean.validateIssueType(issue, new OperationContextImpl(IssueOperations.CREATE_ISSUE_OPERATION, fieldValuesHolder), issueInputParameters.getActionParameters(), errorCollection, i18n);
  if (!errorCollection.hasAnyErrors())
  {
    issue.setIssueTypeId(issueInputParameters.getIssueTypeId());
  }
  return issue;
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    populateCurrentValue(inputParameters, copyIssueBean, fieldLayoutItem, project);
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    populateCurrentValue(inputParameters, copyIssueBean, fieldLayoutItem, project);
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    populateCurrentValue(inputParameters, copyIssueBean, fieldLayoutItem, project);
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    populateCurrentValue(inputParameters, copyIssueBean, fieldLayoutItem, project);
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    populateCurrentValue(inputParameters, copyIssueBean, fieldLayoutItem, project);
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    populateCurrentValue(inputParameters, copyIssueBean, fieldLayoutItem, project);
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  final Date date = copyIssueBean.getIssueDueDate();
  if (date != null) {
    inputParameters.setDueDate(dateFieldFormat.formatDatePicker(date));
  } else if (fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    inputParameters.setDescription(copyIssueBean.getDescription());
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    inputParameters.setSummary(copyIssueBean.getSummary());
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    inputParameters.setProjectId(project.getId());
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    inputParameters.setEnvironment(copyIssueBean.getEnvironment());
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    final IssueType mappedIssueType = findIssueType(copyIssueBean, project);
    inputParameters.setIssueTypeId(mappedIssueType.getId());
  }
}
origin: com.atlassian.cpji/cpji-jira-plugin

@Override
public void populateInputParams(CachingUserMapper userMapper, IssueInputParameters inputParameters, CopyIssueBean copyIssueBean,
    FieldLayoutItem fieldLayoutItem, Project project, IssueType issueType) {
  MappingResult mappingResult = getMappingResult(userMapper, copyIssueBean, project);
  if (!mappingResult.hasOneValidValue() && fieldLayoutItem.isRequired()) {
    String[] defaultFieldValue = defaultFieldValuesManager.getDefaultFieldValue(project.getKey(), getFieldId(), issueType.getName());
    if (defaultFieldValue != null) {
      inputParameters.getActionParameters().put(getFieldId(), defaultFieldValue);
    }
  } else {
    Priority priority = findPriority(copyIssueBean.getPriority());
    inputParameters.setPriorityId(priority.getId());
  }
}
com.atlassian.jira.issueIssueInputParametersgetActionParameters

Javadoc

This provides the "web-style" parameters that JIRA fields expect to perform their functions.

Popular methods of IssueInputParameters

  • addCustomFieldValue
    Adds a value for a custom field with the specified full key. This will put a value in the web-style
  • setAssigneeId
  • setIssueTypeId
  • setPriorityId
  • setProjectId
  • setReporterId
  • setSummary
  • getIssueTypeId
  • setAffectedVersionIds
  • setComponentIds
  • setDescription
  • setDueDate
  • setDescription,
  • setDueDate,
  • setEnvironment,
  • setFixVersionIds,
  • setSecurityLevelId,
  • getProjectId,
  • isFieldPresent,
  • setResolutionId,
  • setRetainExistingValuesWhenParameterNotProvided

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
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