public class MoveIssue extends AbstractCommentableAssignableIssue
JiraWebActionSupport.MessageType
I18nHelper.BeanFactory
ErrorCollection.Reason
Modifier and Type | Field and Description |
---|---|
protected ConstantsManager |
constantsManager |
protected FieldLayoutManager |
fieldLayoutManager |
protected FieldManager |
fieldManager |
protected IssueFactory |
issueFactory |
static String |
SUBTASK_STATUS_PREFIX |
protected WorkflowManager |
workflowManager |
userUtil
id, ISSUE_PERMISSION_ERROR, PREPOPULATED_ISSUE_OBJECT
attachmentManager
projectManager
ISSUE_NOT_FOUND_RESULT, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
Constructor and Description |
---|
MoveIssue(SubTaskManager subTaskManager,
ConstantsManager constantsManager,
WorkflowManager workflowManager,
FieldManager fieldManager,
FieldLayoutManager fieldLayoutManager,
IssueFactory issueFactory,
FieldScreenRendererFactory fieldScreenRendererFactory,
CommentService commentService,
UserUtil userUtil,
UserManager userManager) |
Modifier and Type | Method and Description |
---|---|
String |
doDefault()
Handles the initial request to move an issue.
|
protected String |
doExecute()
Handles the request to submit the input from the first step of the wizard, the submitted information is the target
project and the target issue type.
|
protected void |
doValidation() |
Collection |
getAllowedProjects() |
String |
getBeanTargetStatusId() |
ConstantsManager |
getConstantsManager() |
String |
getCurrentIssueType() |
Status |
getCurrentStatus() |
Status |
getCurrentStatusObject() |
JiraWorkflow |
getCurrentWorkflow() |
String |
getFieldHtml(String fieldId) |
protected FieldLayoutManager |
getFieldLayoutManager() |
protected FieldManager |
getFieldManager() |
MutableIssue |
getIssueObject(org.ofbiz.core.entity.GenericValue issue) |
MoveIssueBean |
getMoveIssueBean() |
String |
getPrefixIssueTypeId(String issueType) |
String |
getPrefixTaskStatusId(String taskTypeId,
String taskStatusId) |
Collection<org.ofbiz.core.entity.GenericValue> |
getSubTasks()
Retrieves the collection of sub-tasks associated with the current issue.
|
String |
getSubtaskTargetIssueType(String subtaskIssueType)
Get the target issue type for a migrating issue type.
|
String |
getSubTaskTargetStatus(String taskTypeId,
String taskStatusId)
Retrieve the task status associated with this type and current status.
|
Collection<org.ofbiz.core.entity.GenericValue> |
getSubTaskTypesUsed()
Gets the collection of sub-task types used in the sub-tasks associated with the current issue.
|
String |
getTargetIssueType() |
IssueType |
getTargetIssueTypeObject() |
Long |
getTargetPid() |
Project |
getTargetProjectObj() |
String |
getTargetStatusId() |
JiraWorkflow |
getTargetWorkflow() |
Collection<Status> |
getTargetWorkflowStatuses(String issueTypeId)
Retrieve a collection of target workflow statuses from the workflow associated with the specified issue type id.
|
Collection<Status> |
getTaskInvalidStatuses(String typeId) |
Collection |
getTaskInvalidStatusObjects(String typeId) |
Collection |
getTasksWithStatus(String invalidStatusId) |
protected Map |
getViewHtmlParams() |
JiraWorkflow |
getWorkflowForType(Long projectId,
String issueTypeId) |
protected WorkflowManager |
getWorkflowManager() |
boolean |
isHasSubTasks()
Checks if the current issue has sub-tasks.
|
boolean |
isIssueStatusValid() |
boolean |
isStatusChangeRequired()
Checks if the current statuses of the issue and its sub-tasks do not exist in the target workflow.
|
boolean |
isSubTask()
Determines whether the issue is a sub task - i.e.
|
boolean |
isTaskStatusChangeRequired() |
boolean |
isTaskStatusValid(String typeId,
String statusId) |
boolean |
isWorkflowMatch(String currentIssueTypeId,
String targetIssueTypeId)
Check if the workflow is the same for the current and target issue types
|
protected String |
redirectToSessionTimeoutPage() |
void |
setBeanTargetStatusId(String targetStatusId) |
protected void |
validateAttachmentMove() |
protected void |
validateCreateIssue() |
assigneeChanged, getAssignee, getAssignIn, hasAssigneePermission, setAssignee
createComment, doCommentValidation, getComment, getCommentLevel, getDisplayParams, getFieldScreenRendererLayoutItemForField, getFieldScreenRendererWithAllFields, getFieldValuesHolder, getGroupLevel, getGroupLevels, getIssueOperation, getOrderableField, getRoleLevels, populateAttachmentsFieldValuesHolderAndValidate, populateCommentFields, processAttachments, processAttachments, requireAttachmentsResources, setComment, setCommentLevel, setFieldValuesHolder, setGroupLevel
getAttachments, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirst
addErrorMessage, assertIssueIsValid, cameFromIssue, cameFromParent, getId, getIssue, getIssueObject, getIssueObjectWithoutDatabaseRead, getIssuePath, getKey, getLayoutBean, getMutableIssue, getParentIssueObject, getProject, getProjectObject, getSecurityLevel, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, refreshIssueObject, setId, setIssueObject, setKey, setViewIssueKey
addIssueToHistory, getAttachmentManager, getCurrentDateTimeInUsersTimezone, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getFormToken, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setFormToken, setSearchRequest, setSelectedIssueId, updateSearchRequest
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, execute, forceRedirect, getActionName, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
addError, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoggedInApplicationUser
addError, setErrorMessages
public static final String SUBTASK_STATUS_PREFIX
protected final ConstantsManager constantsManager
protected final WorkflowManager workflowManager
protected final FieldManager fieldManager
protected final FieldLayoutManager fieldLayoutManager
protected final IssueFactory issueFactory
public MoveIssue(SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutManager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, UserUtil userUtil, UserManager userManager)
protected String doExecute() throws Exception
MoveIssueSubtasks.doDefault()
so that the tasks issue types can be mapped; otherwise, it redirects to
MoveIssueUpdateWorkflow.doDefault()
doExecute
in class webwork.action.ActionSupport
MoveIssueSubtasks.doDefault()
so that the tasks issue types can be mapped; otherwise, it redirects to
MoveIssueUpdateWorkflow.doDefault()
Exception
public String doDefault() throws Exception
doDefault
in class AbstractCommentableAssignableIssue
Action.ERROR
if
the issue can't be found (which means it was probably deleted), or if the user isn't authorised to browse the
issue; otherwise, Action.INPUT
} is returned to render the view for the first step of the
wizard.Exception
protected void doValidation()
doValidation
in class AbstractCommentableAssignableIssue
protected String redirectToSessionTimeoutPage()
protected void validateAttachmentMove()
protected void validateCreateIssue() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public Long getTargetPid()
public String getTargetStatusId()
public Project getTargetProjectObj()
public IssueType getTargetIssueTypeObject()
public JiraWorkflow getTargetWorkflow() throws WorkflowException
WorkflowException
public JiraWorkflow getCurrentWorkflow() throws WorkflowException, org.ofbiz.core.entity.GenericEntityException
WorkflowException
org.ofbiz.core.entity.GenericEntityException
public JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId) throws WorkflowException
WorkflowException
public Status getCurrentStatus()
public Status getCurrentStatusObject()
public String getTargetIssueType()
public String getCurrentIssueType()
public Collection getAllowedProjects()
public boolean isSubTask()
AbstractIssueSelectAction
isSubTask
in class AbstractIssueSelectAction
public Collection<Status> getTargetWorkflowStatuses(String issueTypeId)
issueTypeId
- the id of the specified issue type.public boolean isWorkflowMatch(String currentIssueTypeId, String targetIssueTypeId)
currentIssueTypeId
- the id of the issue's current issue type.targetIssueTypeId
- the id of the target issue type.public boolean isHasSubTasks()
public Collection<org.ofbiz.core.entity.GenericValue> getSubTasks()
public Collection<org.ofbiz.core.entity.GenericValue> getSubTaskTypesUsed()
public String getSubTaskTargetStatus(String taskTypeId, String taskStatusId)
taskTypeId
- the id of the task type.taskStatusId
- the id of the task status.public boolean isStatusChangeRequired()
This is used to determine if step 2 requires input from the user, i.e. If all current statuses exist in the target workflows - no input is needed.
public boolean isTaskStatusChangeRequired() throws WorkflowException
WorkflowException
public boolean isIssueStatusValid() throws WorkflowException
WorkflowException
public boolean isTaskStatusValid(String typeId, String statusId) throws WorkflowException
WorkflowException
public Collection<Status> getTaskInvalidStatuses(String typeId) throws WorkflowException
WorkflowException
public Collection getTaskInvalidStatusObjects(String typeId) throws WorkflowException
WorkflowException
public Collection getTasksWithStatus(String invalidStatusId) throws WorkflowException
WorkflowException
protected FieldLayoutManager getFieldLayoutManager()
public ConstantsManager getConstantsManager()
getConstantsManager
in class JiraWebActionSupport
protected WorkflowManager getWorkflowManager()
public MoveIssueBean getMoveIssueBean()
public void setBeanTargetStatusId(String targetStatusId)
public String getBeanTargetStatusId()
protected Map getViewHtmlParams()
public MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue issue)
protected FieldManager getFieldManager()
public String getSubtaskTargetIssueType(String subtaskIssueType)
NOTE: This is currently used solely in moveissue-updateworkflow.jsp to construct a dropdown of statuses for the subtask target issue type.
subtaskIssueType
- the current issue type idCopyright © 2002-2024 Atlassian. All Rights Reserved.