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.default Timestamp
Returns the timestamp when this project was created.default ApplicationUser
Returns the creator of the project.default Long
Returns the ID of the project creator.getEmail()
org.ofbiz.core.entity.GenericValue
Deprecated.only use this if you need to utilize an older API methodgetId()
getKey()
default Timestamp
Returns the timestamp when this project was lastly updated.default ApplicationUser
Returns the last updater of the project.default Long
Returns the ID of the user who lastly updated project.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.
-
getCreatedAt
Returns the timestamp when this project was created. By default, returns null for projects created before adding this field.- Returns:
Timestamp
when this project was created, or null by default.- Since:
- 10.4
-
getCreatorId
Returns the ID of the project creator. The default return value is null for projects created before this field was added, or if the creator was removed after the project's creation.- Returns:
Long
the project creator's ID, or null by default.- Since:
- 10.4
-
getCreatedBy
Returns the creator of the project. The default return value is null for projects created before this field was added, or if the creator was removed after the project's creation.- Returns:
ApplicationUser
the creator of the project, or null by default.- Since:
- 10.4
-
getLastUpdatedAt
Returns the timestamp when this project was lastly updated. By default, returns null for projects updated before adding this field.- Returns:
Timestamp
when this project was updated, or null by default.- Since:
- 10.4
-
getLastUpdaterId
Returns the ID of the user who lastly updated project. The default return value is null for projects updated before this field was added, or if the updater was removed after the project's update.- Returns:
Long
the project updater's ID, or null by default.- Since:
- 10.4
-
getLastUpdatedBy
Returns the last updater of the project. The default return value is null for projects updated before this field was added, or if the updater was removed after the project's update.- Returns:
ApplicationUser
the updater of the project, or null by default.- Since:
- 10.4
-