Codota Logo
ProjectService.createProject
Code IndexAdd Codota to your IDE (free)

How to use
createProject
method
in
com.atlassian.jira.bc.project.ProjectService

Best Java code snippets using com.atlassian.jira.bc.project.ProjectService.createProject (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: com.atlassian.jira/jira-rest-plugin

  @Override
  public Response apply(@Nullable final Option<ProjectCategory> maybeCategory)
  {
    Project createdProject = projectService.createProject(validationResult);
    projectService.updateProjectSchemes(schemesValidationResult, createdProject);
    if (shouldApplyCoreProjectConfiguration(projectCreationData))
    {
      coreProjectConfigurator.configure(createdProject);
    }
    ProjectIdentity responseEntity = projectBeanFactory.projectIdentity(createdProject);
    if (maybeCategory.isDefined())
    {
      projectManager.setProjectCategory(createdProject, maybeCategory.get());
    }
    return Response.status(Response.Status.CREATED).location(responseEntity.getSelf()).entity(responseEntity).build();
  }
});
origin: com.atlassian.jira.plugins/atlassian-jira-rpc-plugin

final Project newProject = projectService.createProject(result);
projectService.updateProjectSchemes(schemesResult, newProject);
com.atlassian.jira.bc.projectProjectServicecreateProject

Javadoc

Using the validation result from #validateCreateProject(ApplicationUser,ProjectCreationData) a new project will be created. This method will throw an IllegalStateException if the validation result contains any errors. Project creation involves creating the project itself and setting some defaults for workflow schemes and issue type screen schemes. If the validation result contains an existing project id, the new project will be created with shared schemes, that is the a new project will be associated with the the same schemes as the existing project:
  • Permission Scheme
  • Notification Scheme
  • Issue Security Scheme
  • Workflow Scheme
  • Issue Type Scheme
  • Issue Type Screen Scheme
In addition this method will also add the new project to the same project category as the existing project.

Popular methods of ProjectService

  • getProjectByKey
    Used to retrieve a com.atlassian.jira.project.Project object by key. This method returns a com.atlas
  • deleteProject
    Deletes the project provided by the deleteProjectValidationResult. There's a number of steps involve
  • getProjectById
    Used to retrieve a com.atlassian.jira.project.Project object by id. This method returns a com.atlass
  • getProjectByKeyForAction
    Used to retrieve a com.atlassian.jira.project.Project object by key providing the user can perform t
  • updateProject
    Using the validation result from #validateUpdateProject(User,String,String,String,String,String,Long
  • validateDeleteProject
    Validation to delete a project is quite straightforward. The user must have global admin rights and
  • validateUpdateProject
    Validates updating a project's details. The project is looked up by the key provided. If no project
  • getAllProjectsForAction
    Used to retrieve a list of com.atlassian.jira.project.Project objects. This method returns a com.atl
  • getProjectByIdForAction
    Used to retrieve a com.atlassian.jira.project.Project object by id providing the user can perform th
  • updateProjectSchemes
    Updates the project schemes for a particular project, given a validation result and project to updat
  • validateCreateProject
    This method needs to be called before creating a project to ensure all parameters are correct. There
  • validateUpdateProjectSchemes
    If the scheme ids are not null or -1 (-1 is often used to reset schemes), then an attempt will be ma
  • validateCreateProject,
  • validateUpdateProjectSchemes,
  • getAllProjects,
  • getMaximumKeyLength,
  • getMaximumNameLength,
  • isValidProjectKey,
  • updateProjectType

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Path (java.nio.file)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
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