public class

LatestReleasedVersionFunction

extends AbstractVersionsFunction
java.lang.Object
   ↳ com.atlassian.jira.plugin.jql.function.AbstractJqlFunction
     ↳ com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
       ↳ com.atlassian.jira.plugin.jql.function.LatestReleasedVersionFunction

Class Overview

Function that produces the last released version for any specified projects. The versions are sequenced in the the user specified order (not the release date).

Projects are resolved by project key first, then name, then id. Only Versions from Projects which the current user can browse will be returned.

Summary

Constants
String FUNCTION_LATEST_RELEASED_VERSION
[Expand]
Inherited Fields
From class com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
Public Constructors
LatestReleasedVersionFunction(VersionManager versionManager, ProjectResolver projectResolver, PermissionManager permissionManager)
Public Methods
List<QueryLiteral> getValues(QueryCreationContext queryCreationContext, FunctionOperand operand, TerminalClause terminalClause)
Protected Methods
Collection<Version> getAllVersions(ApplicationUser user)
Collection<Version> getVersionsForProject(Long projectId)
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
From class com.atlassian.jira.plugin.jql.function.AbstractJqlFunction
From class java.lang.Object
From interface com.atlassian.jira.plugin.jql.function.ClauseSanitisingJqlFunction
From interface com.atlassian.jira.plugin.jql.function.JqlFunction

Constants

public static final String FUNCTION_LATEST_RELEASED_VERSION

Constant Value: "latestReleasedVersion"

Public Constructors

public LatestReleasedVersionFunction (VersionManager versionManager, ProjectResolver projectResolver, PermissionManager permissionManager)

Public Methods

public List<QueryLiteral> getValues (QueryCreationContext queryCreationContext, FunctionOperand operand, TerminalClause terminalClause)

Protected Methods

protected Collection<Version> getAllVersions (ApplicationUser user)

Returns
  • all the versions relevant to this function.

protected Collection<Version> getVersionsForProject (Long projectId)

Parameters
projectId the id of the Project which the versions belong to
Returns
  • all the versions relevant to this function and the specified project