com.atlassian.greenhopper.service.version
Interface ReleaseService

All Known Implementing Classes:
ReleaseServiceImpl

public interface ReleaseService


Method Summary
 ErrorCollection createAndReleaseVersion(com.atlassian.crowd.embedded.api.User user, java.lang.String name, java.lang.String description, org.joda.time.DateMidnight releaseDate, java.lang.Long rapidViewId, java.lang.Long columnId)
          Create a version in each project that has issues in the done column, associate the version with the issues and release it.
 ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> getNavigatorSearch(com.atlassian.crowd.embedded.api.User user, java.lang.Long projectId, java.lang.Long rapidViewId, java.lang.Long columnId)
          Get a non-persisted search request (a.k.a.
 ServiceOutcome<java.util.Map<com.atlassian.jira.project.Project,java.lang.Integer>> getProjectReleasableIssueCount(com.atlassian.crowd.embedded.api.User user, java.lang.Long rapidViewId, java.lang.Long columnId)
          Get some info about the issues that can be released (are currently in the given column)
 

Method Detail

createAndReleaseVersion

ErrorCollection createAndReleaseVersion(com.atlassian.crowd.embedded.api.User user,
                                        java.lang.String name,
                                        java.lang.String description,
                                        org.joda.time.DateMidnight releaseDate,
                                        java.lang.Long rapidViewId,
                                        java.lang.Long columnId)
Create a version in each project that has issues in the done column, associate the version with the issues and release it.

Parameters:
name - : The version name
description - : The version description
columnId - : The ID of the column to be released

getProjectReleasableIssueCount

ServiceOutcome<java.util.Map<com.atlassian.jira.project.Project,java.lang.Integer>> getProjectReleasableIssueCount(com.atlassian.crowd.embedded.api.User user,
                                                                                                                   java.lang.Long rapidViewId,
                                                                                                                   java.lang.Long columnId)
Get some info about the issues that can be released (are currently in the given column)

Returns:
Map of project to number of issues currently in the given column, or an empty map if there were errors

getNavigatorSearch

ServiceOutcome<com.atlassian.jira.issue.search.SearchRequest> getNavigatorSearch(com.atlassian.crowd.embedded.api.User user,
                                                                                 java.lang.Long projectId,
                                                                                 java.lang.Long rapidViewId,
                                                                                 java.lang.Long columnId)
Get a non-persisted search request (a.k.a. saved filter) that can be used to populate the issue navigator. This will include the given project and issues that are in the column of the given rapid view that matches the given columnId.

Returns:
SearchRequest or null if something went wrong, in which case errors will contain why.


Copyright © 2007-2012 Atlassian. All Rights Reserved.