congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ProjectService.createProject
Code IndexAdd Tabnine 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)

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

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JTextField (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Sublime Text plugins
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