com.atlassian.jira.issue
Class AssignIssueUtilsImpl

java.lang.Object
  extended bycom.atlassian.jira.issue.AssignIssueUtilsImpl
All Implemented Interfaces:
AssignIssueUtils

public class AssignIssueUtilsImpl
extends java.lang.Object
implements AssignIssueUtils

This class contains code common to the frontend "Assign Issue" action and the backend "Bulk Assign" action


Constructor Summary
AssignIssueUtilsImpl()
           
 
Method Summary
 GenericValue assignIssue(GenericValue issue, User remoteUser, java.lang.String assignee)
          Assign an issue, and create a changelog.
 int getCurrentWorkflowStep(GenericValue issue, User remoteUser)
          Retrieves the Id of the current workflow step, 3 is InProgress.
 boolean stopProgressIfInProgress(GenericValue issue, User remoteUser)
          If the issue being assigned is In Progress make workflow stop its progress (Progress is stop by the current assignee, see StopProgressWorkflowAction class below) Note: the method changes the actual issue if needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignIssueUtilsImpl

public AssignIssueUtilsImpl()
Method Detail

stopProgressIfInProgress

public boolean stopProgressIfInProgress(GenericValue issue,
                                        User remoteUser)
                                 throws java.lang.Exception
If the issue being assigned is In Progress make workflow stop its progress (Progress is stop by the current assignee, see StopProgressWorkflowAction class below) Note: the method changes the actual issue if needed.

returns true if stepId == 3 (ie. in progress)

Specified by:
stopProgressIfInProgress in interface AssignIssueUtils
Throws:
java.lang.Exception

getCurrentWorkflowStep

public int getCurrentWorkflowStep(GenericValue issue,
                                  User remoteUser)
Retrieves the Id of the current workflow step, 3 is InProgress.

Specified by:
getCurrentWorkflowStep in interface AssignIssueUtils

assignIssue

public GenericValue assignIssue(GenericValue issue,
                                User remoteUser,
                                java.lang.String assignee)
                         throws java.lang.Exception
Assign an issue, and create a changelog.

This updates the statistics, but does not re-index the issue, nor does it dispatch any events. These are left to the caller of this class, who may wish to do them in bulk (eg bulk edit issue).

Specified by:
assignIssue in interface AssignIssueUtils
Returns:
a changegroup with the update to this issue.
Throws:
java.lang.Exception