Codota Logo
IssueInputParameters.setProjectId
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using com.atlassian.jira.issue.IssueInputParameters.setProjectId (Showing top 5 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

private void initProjectAndIssueType(Map<String, Object> fields)
{
  for (Map.Entry<String, Object> e : fields.entrySet())
  {
    String fieldId = e.getKey();
    Object value = e.getValue();
    JsonData data = new JsonData(value);
    if ("project".equals(fieldId)) {
      parameters.setProjectId(parseProject(fieldId, data, errors));
    }
    if ("issuetype".equals(fieldId)) {
      parameters.setIssueTypeId(parseIssueType(fieldId, data, errors));
    }
  }
}
origin: com.atlassian.jira/jira-rest-plugin

else if ("project".equals(fieldId)) { parameters.setProjectId(parseProject(fieldId, data, errors)); }
else if ("issuetype".equals(fieldId)) { parameters.setIssueTypeId(parseIssueType(fieldId, data, errors)); }
else {
origin: com.atlassian.jira/jira-gadgets-plugin

private IssueInputParameters getIssueInputParameters(String projectId, String issueTypeId, String summary, ApplicationUser reporter)
{
  final IssueInputParameters issueInputParameters = new IssueInputParametersImpl();
  issueInputParameters.setProjectId(new Long(projectId));
  issueInputParameters.setIssueTypeId(issueTypeId);
  issueInputParameters.setSummary(summary);
  issueInputParameters.setReporterId(reporter.getName());
  issueInputParameters.setAssigneeId("-1");
  issueInputParameters.setPriorityId(constantsManager.getDefaultPriorityObject().getId());
  return issueInputParameters;
}
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.jira.plugins/atlassian-jira-rpc-plugin

issueInputParameters.setProjectId(projectId);
issueInputParameters.setIssueTypeId(rIssue.getType());
issueInputParameters.setSummary(rIssue.getSummary());
com.atlassian.jira.issueIssueInputParameterssetProjectId

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

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