public interface BulkChangeWizard
Promotes a "fluent-style" of usage by returning the stateful object as the result of each operation.
Modifier and Type | Interface and Description |
---|---|
static interface |
BulkChangeWizard.BulkOperations |
static class |
BulkChangeWizard.BulkOperationsCustom |
static class |
BulkChangeWizard.BulkOperationsImpl
Various operations available in the bulk change wizard.
|
static class |
BulkChangeWizard.InputTypes
Types of inputs for the editing controls in a Bulk Change Wizard form
|
static class |
BulkChangeWizard.WizardState
States that the wizard can be in.
|
Modifier and Type | Method and Description |
---|---|
BulkChangeWizard |
cancel()
Cancels the wizard.
|
BulkChangeWizard |
checkActionForField(String fieldName)
Check the "Action" checkbox for the chosen field.
|
BulkChangeWizard |
checkRetainForField(String fieldName)
Check the "Retain" checkbox for the chosen field.
|
BulkChangeWizard |
chooseOperation(BulkChangeWizard.BulkOperations operation)
Select the bulk operation to perform.
|
BulkChangeWizard |
chooseTargetContextForAll(String projectName)
Chooses the target project for all issues to be moved to.
|
BulkChangeWizard |
chooseTargetContextForAll(String projectName,
String issueType)
Chooses the target project and issue type for all issues to be moved to.
|
BulkChangeWizard |
chooseTargetContextForEach(int numContextsToSelect,
String projectName)
Chooses the target project to be moved to for each of the issue types to be moved.
|
BulkChangeWizard |
chooseWorkflowTransition(BulkChangeWizard.BulkOperations workflowTransition)
Select the workflow transition to perform.
|
BulkChangeWizard |
complete()
Completes the wizard and performs the bulk operation.
|
BulkChangeWizard |
finaliseFields()
Completes the entering of fields in this screen.
|
BulkChangeWizard.WizardState |
getState()
Returns the current state of the wizard.
|
BulkChangeWizard |
revertTo(BulkChangeWizard.WizardState state)
Reverts the wizard to any given previous stage.
|
BulkChangeWizard |
selectAllIssues()
Selects all issues from the last search to operate on.
|
BulkChangeWizard |
setFieldValue(BulkChangeWizard.InputTypes inputType,
String fieldName,
String value)
Set a value for a field.
|
BulkChangeWizard |
setFieldValue(String fieldName,
String value)
Set a value for a field.
|
BulkChangeWizard selectAllIssues()
Wizard must be in BulkChangeWizard.WizardState.SELECT_ISSUES
to perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.CHOOSE_OPERATION
.
BulkChangeWizard chooseOperation(BulkChangeWizard.BulkOperations operation)
Wizard must be in BulkChangeWizard.WizardState.CHOOSE_OPERATION
to perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.CHOOSE_TARGET_CONTEXTS
.
operation
- the operation to performBulkChangeWizard chooseWorkflowTransition(BulkChangeWizard.BulkOperations workflowTransition)
Wizard must be in BulkChangeWizard.WizardState.CHOOSE_OPERATION
to perform this operation.
Once selected, the wizard will advance
workflowTransition
- BulkChangeWizard chooseTargetContextForAll(String projectName)
WARN: note that this only currently works when you are moving issues from Homosapien project, and when that is the only source project context offered on the page.
Wizard must be in BulkChangeWizard.BulkOperationsImpl.MOVE
, BulkChangeWizard.WizardState.CHOOSE_TARGET_CONTEXTS
to
perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.SET_FIELDS
.
projectName
- the name of the project to use in the target context e.g. monkey
BulkChangeWizard chooseTargetContextForAll(String projectName, String issueType)
WARN: note that this only currently works when you are moving issues from Homosapien project, and when that is the only source project context offered on the page.
Wizard must be in BulkChangeWizard.BulkOperationsImpl.MOVE
, BulkChangeWizard.WizardState.CHOOSE_TARGET_CONTEXTS
to
perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.SET_FIELDS
.
projectName
- the name of the project to use in the target context e.g. monkey
BulkChangeWizard chooseTargetContextForEach(int numContextsToSelect, String projectName)
WARN: note that this only currently works when you are moving issues from Homosapien project, and when that is the only source project context offered on the page.
Wizard must be in BulkChangeWizard.BulkOperationsImpl.MOVE
, BulkChangeWizard.WizardState.CHOOSE_TARGET_CONTEXTS
to
perform this operation.
Once selected, the wizard will advance to BulkChangeWizard.WizardState.SET_FIELDS
.
projectName
- the name of the project to use in the target context e.g. monkey
numContextsToSelect
- the expected number of contexts to be set.BulkChangeWizard setFieldValue(String fieldName, String value)
Wizard must be in BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
Note: wizard does not advance after this operation; multiple calls to this method can be made. Once finished, call
finaliseFields()
.
fieldName
- the name of the field to set e.g. components
, timetracking_originalestimate
value
- the value to set e.g. 10000
, 5h
finaliseFields()
,
setFieldValue(com.atlassian.jira.functest.framework.navigation.BulkChangeWizard.InputTypes, String, String)
BulkChangeWizard setFieldValue(BulkChangeWizard.InputTypes inputType, String fieldName, String value)
Wizard must be in BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
Note: wizard does not advance after this operation; multiple calls to this method can be made. Once finished, call
finaliseFields()
.
inputType
- the type of control you are using to set the field valuefieldName
- the name of the field to set e.g. components
, timetracking_originalestimate
value
- the value to set e.g. 10000
, 5h
finaliseFields()
BulkChangeWizard checkRetainForField(String fieldName)
Wizard must be in BulkChangeWizard.BulkOperationsImpl.MOVE
, BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
Note: wizard does not advance after this operation; multiple calls to this method can be made. Once finished, call
finaliseFields()
.
fieldName
- the name of the fieldBulkChangeWizard checkActionForField(String fieldName)
Wizard must be in BulkChangeWizard.BulkOperationsImpl.EDIT
, BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
Note: wizard does not advance after this operation; multiple calls to this method can be made. Once finished, call
finaliseFields()
.
fieldName
- the name of the fieldBulkChangeWizard finaliseFields()
Wizard must be in BulkChangeWizard.WizardState.SET_FIELDS
to perform this operation.
If there are more field screens to complete, the wizard will remain in BulkChangeWizard.WizardState.SET_FIELDS
.
Otherwise, it will advance to BulkChangeWizard.WizardState.CONFIRMATION
.
BulkChangeWizard complete()
Wizard must be in BulkChangeWizard.WizardState.CONFIRMATION
to perform this operation.
Once performed, the wizard will advance to BulkChangeWizard.WizardState.COMPLETE
. There is no further
state to advance to after this. This wizard instance should not be used again.
BulkChangeWizard revertTo(BulkChangeWizard.WizardState state)
Wizard must be in any state that is further than the requested state.
Once performed, wizard will revert to the desired state.
BulkChangeWizard cancel()
Wizard must be in any state except BulkChangeWizard.WizardState.COMPLETE
.
Once performed the wizard will set itself to state BulkChangeWizard.WizardState.COMPLETE
.
complete()
BulkChangeWizard.WizardState getState()
Copyright © 2002-2015 Atlassian. All Rights Reserved.