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

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

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

origin: com.atlassian.jira/jira-rest-plugin

void buildForEdit(IssueUpdateBean request, Issue issue)
{
  build(request, getValidFieldsForEdit(issue),true);
  this.parameters.setRetainExistingValuesWhenParameterNotProvided(true, true);
  if (!errors.hasAnyErrors())
  {
    finalizeIssueInputParams(issue, issue);
  }
}
origin: com.atlassian.jira/jira-core

protected void doValidation()
{
  final IssueInputParameters issueInputParameters = issueService.newIssueInputParameters(ActionContext.getParameters());
  issueInputParameters.setRetainExistingValuesWhenParameterNotProvided(false);
  updateValidationResult = issueService.validateUpdate(getLoggedInUser(), getIssueObject().getId(), issueInputParameters);
  setIssueObject(updateValidationResult.getIssue());
  setFieldValuesHolder(updateValidationResult.getFieldValuesHolder());
  if (!updateValidationResult.isValid())
  {
    addErrorCollection(updateValidationResult.getErrorCollection());
  }
}
origin: com.atlassian.jira/jira-core

protected void doValidation()
{
  try
  {
    //just checking that the issue exists and that the user has permission to see it.
    getIssue();
  }
  catch (IssuePermissionException ipe)
  {
    return;
  }
  catch (IssueNotFoundException infe)
  {
    return;
  }
  final IssueInputParameters issueInputParameters = issueService.newIssueInputParameters(ActionContext.getParameters());
  issueInputParameters.setRetainExistingValuesWhenParameterNotProvided(false);
  transitionResult = issueService.validateTransition(getLoggedInUser(), getIssueObject().getId(), action, issueInputParameters);
  setFieldValuesHolder(transitionResult.getFieldValuesHolder());
  if (!transitionResult.isValid())
  {
    addErrorCollection(transitionResult.getErrorCollection());
  }
}
com.atlassian.jira.issueIssueInputParameterssetRetainExistingValuesWhenParameterNotProvided

Javadoc

Flag to designate whether existing values should be retained when no parameter is provided.

Note: setting this flag here will assume that validation of fields should still occur, even if they were not specified. To change this, please use #setRetainExistingValuesWhenParameterNotProvided(boolean,boolean) instead.

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
  • getActionParameters
    This provides the "web-style" parameters that JIRA fields expect to perform their functions.
  • getIssueTypeId
  • setAffectedVersionIds
  • setComponentIds
  • setDescription
  • setComponentIds,
  • setDescription,
  • setDueDate,
  • setEnvironment,
  • setFixVersionIds,
  • setSecurityLevelId,
  • getProjectId,
  • isFieldPresent,
  • setResolutionId

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • Menu (java.awt)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 21 Best IntelliJ 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