Package com.atlassian.jira.project
Interface Project
- All Superinterfaces:
Named
,NamedWithDescription
,WithId
,WithKey
- All Known Implementing Classes:
MockProject
,ProjectImpl
Defines a project in JIRA.
-
Field Summary
Fields inherited from interface com.atlassian.jira.util.Named
NAME_COMPARATOR
Fields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default assignee for issues that get created in this project.Gives the currently-configuredAvatar
for this project.Returns the components for this Project.getEmail()
org.ofbiz.core.entity.GenericValue
Deprecated.only use this if you need to utilize an older API methodgetId()
getKey()
getLead()
Deprecated.UsegetProjectLead()
, which returns application users, instead.getName()
Returns the Project Category for this Project.Returns the components for this Project.Returns the key of the project type for this project.getUrl()
boolean
-
Method Details
-
getId
Long getId() -
getName
String getName() -
getKey
String getKey() -
getUrl
String getUrl()- Returns:
- the project URL
-
getEmail
String getEmail()- Returns:
- the project email address from which email notifications are sent.
-
getLead
ApplicationUser getLead()Deprecated.UsegetProjectLead()
, which returns application users, instead. Since v6.0.- Returns:
- the Project Lead
-
getLeadUserName
String getLeadUserName()- Returns:
- the user name of the project lead
-
getDescription
String getDescription()- Specified by:
getDescription
in interfaceNamedWithDescription
- Returns:
- the project description
-
getAssigneeType
Long getAssigneeType()Returns the default assignee for issues that get created in this project. ReturnsAssigneeTypes.PROJECT_LEAD
orAssigneeTypes.UNASSIGNED
. Can return NULL if the default assignee has not been set for this project and this means the PROJECT LEAD is the default assignee.TODO: Write upgrade task to ensure default assignee is always set.
- Returns:
- the default assignee. NB: Can return NULL
-
getProjectTypeKey
ProjectTypeKey getProjectTypeKey()Returns the key of the project type for this project.- Returns:
- The key of the project type for this project.
- Since:
- 7.0
-
getComponents
Collection<ProjectComponent> getComponents()Returns the components for this Project.- Returns:
- the components for this Project.
-
getProjectComponents
Collection<ProjectComponent> getProjectComponents()Returns the components for this Project.This is a synonym for
getComponents()
that exists for legacy reasons.- Returns:
- the components for this Project.
- See Also:
-
getVersions
Collection<Version> getVersions()- Returns:
- a Collection of
Version
for this project
-
getIssueTypes
Collection<IssueType> getIssueTypes()- Returns:
- a Collection of
IssueType
for this project
-
getProjectCategory
ProjectCategory getProjectCategory()- Returns:
- the project category information for this project.
-
getProjectCategoryObject
ProjectCategory getProjectCategoryObject()Returns the Project Category for this Project.This is a synonym for
getProjectCategory()
that exists for legacy reasons.- Returns:
- the project category information for this project.
- See Also:
-
getGenericValue
org.ofbiz.core.entity.GenericValue getGenericValue()Deprecated.only use this if you need to utilize an older API method- Returns:
- the GenericValue backing this project object
-
getAvatar
Gives the currently-configuredAvatar
for this project.- Returns:
- the current Avatar (or default if the current one is removed), never null.
-
getProjectLead
- Returns:
- the Project Lead
-
getLeadUserKey
- Returns:
- the Project Lead's userkey
-
getOriginalKey
- Returns:
- the project key with which Project was originally created
-
isArchived
@ExperimentalApi boolean isArchived()- Returns:
- true if this project is archived.
-
getArchivedBy
- Returns:
- the user who archived this project, or null if it wasn't archived.
-
getArchivedDate
- Returns:
Date
when this project was archived, or null if it wasn't archived.
-