java.lang.Object | |
↳ | com.atlassian.jira.project.version.DefaultVersionManager |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.project.version.VersionManager
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
collectionReorderer | |||||||||||
issueIndexManager | |||||||||||
issueManager | |||||||||||
nodeAssociationStore | |||||||||||
projectManager | |||||||||||
versionStore |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Archive/Un-archive a single version depending on the archive flag.
| |||||||||||
Method used to archive and un-archive a number of versions.
| |||||||||||
This method is deprecated.
since version 6.0
| |||||||||||
Creates a new
Version object. | |||||||||||
Creates a new
Version object. | |||||||||||
Move a version to have a higher sequence number - ie make it later
| |||||||||||
Removes a specific version from the system.
| |||||||||||
Updates details of an existing version.
| |||||||||||
Updates details for an existing version.
| |||||||||||
Update the release date of a version.
| |||||||||||
Updates the start date of a version
| |||||||||||
Updates the start and release date of a version
| |||||||||||
Get all affected versions of the specified issue.
| |||||||||||
Return 'Affects' Issues
| |||||||||||
Return all Issues that are associated with the specified versions
| |||||||||||
Returns all versions that belong to the passed projects.
| |||||||||||
Return Fix Issues
| |||||||||||
Get all fix for versions of the specified issue.
| |||||||||||
Return all the issues in which the affects version matches the specified version.
| |||||||||||
Return all the issues in which the fix version matches the specified version.
| |||||||||||
Return all the issues in which the affected version matches the specified version.
| |||||||||||
Return all the issues in which the fix for version matches the specified version.
| |||||||||||
Return all unarchived versions except this one
| |||||||||||
Return all other versions in the project except this one
| |||||||||||
Retrieve a specific Version in a project given the project id, or
null if no such version exists in that project. | |||||||||||
Returns a single version.
| |||||||||||
Return a list of Versions for the given project.
| |||||||||||
Return a list of Versions for the given project.
| |||||||||||
Gets all the versions for a project.
| |||||||||||
Return a collection of
Version s matching the ids passed in. | |||||||||||
Return a list of Versions for the given project.
| |||||||||||
Return all archived versions for a particular project.
| |||||||||||
Return all archived versions for a particular project.
| |||||||||||
Return a collection of
Version s that have the specified name. | |||||||||||
Gets a list of released versions for a project.
| |||||||||||
Gets a list of released versions for a project in reverse order.
| |||||||||||
Return all un-archived versions for a particular project
| |||||||||||
Gets a list of un-released versions for a particular project.
| |||||||||||
Move a version to have a lower sequence number - ie make it earlier
| |||||||||||
Check that the version name we are changing to is not a duplicate.
| |||||||||||
Checks if a version in the current project already exists with the same name
| |||||||||||
Checks to see if a version is overdue.
| |||||||||||
Swaps the list of issues supplied from one Fix version to another.
| |||||||||||
Move a version to the end of the version sequence
| |||||||||||
Move a version to the start of the version list
| |||||||||||
Move a version after another version
| |||||||||||
Used to release or unrelease a version, depending on the release flag.
| |||||||||||
Used to release versions depending on the release flag.
| |||||||||||
Given a re-ordered list of versions, commit the changes to the backend datastore.
| |||||||||||
Persists updates to the specified version object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NB: This is done because we can't inject a
IssueFactory , this would cause circular dependency. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.project.version.VersionManager
|
Archive/Un-archive a single version depending on the archive flag.
version | the Version to archive or unarchive |
---|---|
archive | new archive value |
Method used to archive and un-archive a number of versions.
idsToArchive | Archive all these Versions |
---|---|
idsToUnarchive | Unarchive these Versions |
Creates a new Version
object.
name | the Name |
---|---|
releaseDate | date of release or null if not released. |
description | the Description |
projectId | the id of the Project of the version. |
scheduleAfterVersion | id of the version after which this should be sequenced or null. |
CreateException |
---|
Creates a new Version
object.
name | the Name |
---|---|
startDate | start date of the version or null |
releaseDate | date of release or null if not released. |
description | the Description |
projectId | the id of the Project of the version. |
scheduleAfterVersion | id of the version after which this should be sequenced or null. |
CreateException |
---|
Move a version to have a higher sequence number - ie make it later
version | the Version |
---|
Removes a specific version from the system.
version | The version to be removed. |
---|
Updates details of an existing version.
version | The version to update |
---|---|
name | The new version name, cannot be empty. |
description | The description of this version. |
Updates details for an existing version.
version | The version to update |
---|---|
versionName | new name |
description | new description |
project | Used to check for duplicate version names in a project. |
Update the release date of a version.
version | the Version to edit |
---|---|
duedate | new release date |
Updates the start date of a version
version | the version to edit |
---|---|
startDate | new start date |
Updates the start and release date of a version
version | the version to edit |
---|---|
startDate | new start date |
releaseDate | new release date |
Get all affected versions of the specified issue.
issue | the issue |
---|
Return 'Affects' Issues
version | the Version |
---|
Return all Issues that are associated with the specified versions
versions | a collection of Version objects |
---|
Returns all versions that belong to the passed projects.
projects | projects to search in |
---|---|
includeArchived | whether or not to include archived versions |
Return Fix Issues
version | the Version |
---|
Get all fix for versions of the specified issue.
issue | the Issue |
---|
Return all the issues in which the affects version matches the specified version.
version | the affects version. |
---|
Return all the issues in which the fix version matches the specified version.
version | the fix version. |
---|
Return all the issues in which the affected version matches the specified version.
version | the affected version. |
---|
Return all the issues in which the fix for version matches the specified version.
version | the fixed for version. |
---|
Return all unarchived versions except this one
version | the Version |
---|
Return all other versions in the project except this one
version | the Version |
---|
Retrieve a specific Version in a project given the project id, or null
if no such version exists in that project.
projectId | the Project |
---|---|
versionName | the Version name |
Version
object.
Return a list of Versions for the given project.
project | the Project |
---|
Return a list of Versions for the given project.
projectId | the Project |
---|---|
includeArchived | whether or not to include archived versions |
Gets all the versions for a project.
project | the Project |
---|
Return a list of Versions for the given project.
projectId | the Project |
---|
Return all archived versions for a particular project.
project | the Project |
---|
Return all archived versions for a particular project.
projectGV | the Project |
---|
Version
sReturn a collection of Version
s that have the specified name.
versionName | the name of the version (case-insensitive) |
---|
Gets a list of released versions for a project. This list will include archived versions if the 'includeArchived' flag is set to true.
projectId | project id |
---|---|
includeArchived | flag to indicate whether to include archived versions in the result. |
Version
objects
Gets a list of released versions for a project in reverse order. This list will include archived versions if the 'includeArchived' flag is set to true.
projectId | project id |
---|---|
includeArchived | flag to indicate whether to include archived versions in the result. |
Version
objects
Return all un-archived versions for a particular project
projectId | id of the project. |
---|
Version
sGets a list of un-released versions for a particular project.
projectId | The id of the project for which to return versions |
---|---|
includeArchived | True if archived versions should be included |
Version
s, never nullMove a version to have a lower sequence number - ie make it earlier
version | the Version |
---|
Check that the version name we are changing to is not a duplicate.
currentVersion | The version to update |
---|---|
name | The new name for the version |
Checks if a version in the current project already exists with the same name
currentVersion | The version to update |
---|---|
name | The new name for the version |
project | Used to check for duplicate version names in a project. |
Checks to see if a version is overdue. Note: This method checks if the due date set for a version is previous to last midnight. (not now()).
version | the Version |
---|
Swaps the list of issues supplied from one Fix version to another.
issues | the Issues |
---|---|
currentVersion | Current fix version they will be swapped from |
swapToVersion | New fix version they will be swapped to. |
IndexException |
---|
Move a version to the end of the version sequence
version | the Version |
---|
Move a version to the start of the version list
version | the Version to move |
---|
Move a version after another version
version | version to reschedule |
---|---|
scheduleAfterVersionId | id of the version to schedule after the given version object |
Used to release or unrelease a version, depending on the release flag.
version | Version to be released (or unreleased) |
---|---|
release | True to release a version. False to 'unrelease' a version |
Used to release versions depending on the release flag.
versions | Collection of Version s |
---|---|
release | True to release a version. False to 'unrelease' a version |
Given a re-ordered list of versions, commit the changes to the backend datastore.
Persists updates to the specified version object.
version | the version |
---|
NB: This is done because we can't inject a IssueFactory
, this would cause circular dependency.
issue | the issue |
---|---|
relationName | VERSION or FIX_VERSION . |
Version
s for this issue.