@PublicApi public interface

Version

implements WithId ProjectConstant NamedWithDescription
com.atlassian.jira.project.version.Version
Known Indirect Subclasses

@PublicApi

This interface is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

Project version. Immutable since v7.0.

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.util.Named
Public Methods
@Nullable String getDescription()
@Nullable Long getId()
String getName()
Project getProject()
Returns project this version relates to.
Long getProjectId()
Returns the ID of the project that this version belongs to.
Project getProjectObject()
This method is deprecated. Please use getProject(). Since v7.0
@Nullable Date getReleaseDate()
Long getSequence()
@Nullable Date getStartDate()
Returns the start date of the version
boolean isArchived()
boolean isReleased()
[Expand]
Inherited Methods
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.project.ProjectConstant
From interface com.atlassian.jira.util.Named
From interface com.atlassian.jira.util.NamedWithDescription

Public Methods

@Nullable public String getDescription ()

@Nullable public Long getId ()

public String getName ()

public Project getProject ()

Returns project this version relates to.

Returns
  • project this version relates to.

public Long getProjectId ()

Returns the ID of the project that this version belongs to.

Returns
  • the ID of the project that this version belongs to.

public Project getProjectObject ()

This method is deprecated.
Please use getProject(). Since v7.0

Returns project this version relates to.

Same as getProject() and exists for legacy reasons.

Returns
  • project domain object

@Nullable public Date getReleaseDate ()

public Long getSequence ()

@Nullable public Date getStartDate ()

Returns the start date of the version

Returns
  • The start date of the version

public boolean isArchived ()

public boolean isReleased ()