Codota Logo
IssueInputParameters.setRetainExistingValuesWhenParameterNotProvided
Code IndexAdd Codota 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)

  • Common ways to obtain IssueInputParameters
private void myMethod () {
IssueInputParameters i =
  • Codota Iconnew IssueInputParametersImpl()
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • runOnUiThread (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now