Class ProjectCreatedData

java.lang.Object
com.atlassian.jira.project.ProjectCreatedData

@PublicApi public class ProjectCreatedData extends Object
Holds the information about a recently created project. This will be passed to ProjectCreateHandlers that are registered to receive notifications about created projects.
Since:
7.0
  • Method Details

    • getType

      public ProjectCreatedData.Type getType()
      Returns ProjectCreatedData.Type.CREATE if this is a normal project create call. If this project was created based on shared config with an existing project it will return ProjectCreatedData.Type.CREATE_WITH_SHARED_CONFIG
      Returns:
      the create operation type
    • getProject

      public Project getProject()
      Returns the created project.
      Returns:
      The created project.
    • getProjectTemplateKey

      public Optional<ProjectTemplateKey> getProjectTemplateKey()
      Returns the key of the project template used to create the project.
      Returns:
      The key of the project template used to create the project.
    • getExistingProjectId

      public Optional<Long> getExistingProjectId()
      Returns the id of the the existing project that was used as a template for the new project
      Returns:
      The id of the the existing project that was used as a template for the new project
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object