public class DefaultSubTaskToIssueConversionService extends DefaultIssueConversionService implements SubTaskToIssueConversionService
SubTaskToIssueConversionService
.fieldLayoutManager, fieldManager, issueTypeSchemeManager, jiraAuthenticationContext
Constructor and Description |
---|
DefaultSubTaskToIssueConversionService(PermissionManager permissionManager,
WorkflowManager workflowManager,
FieldLayoutManager fieldLayoutManager,
IssueTypeSchemeManager issueTypeSchemeManager,
JiraAuthenticationContext jiraAuthenticationContext,
FieldManager fieldManager,
IssueLinkManager issueLinkManager,
SubTaskManager subTaskManager,
IssueEventManager issueEventManager,
IssueEventBundleFactory issueEventBundleFactory,
TxnAwareEventFactory txnAwareEventFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvertIssue(JiraServiceContext context,
Issue issue)
Determines if user can convert given issue.
|
protected boolean |
canIssueSecurityFieldIgnore()
A sub-task inherits its Security Level from its parent.
|
void |
preStoreUpdates(JiraServiceContext context,
IssueChangeHolder changeHolder,
Issue currentIssue,
MutableIssue targetIssue)
Removes the parent link and adds change item.
|
void |
validateTargetIssueType(JiraServiceContext context,
Issue issue,
IssueType issueType,
String fieldNameIssueTypeId)
Validates that the issue can be converted to given issue type.
|
convertIssue, getFieldLayoutItems, getPermissionNeeded, getRemovedFields, getText, getText, getText, hasPermission, isShouldCheckFieldValue, isStatusChangeRequired, isStatusInWorkflowForProjectAndIssueType, populateFields, validateFields, validateTargetStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertIssue, getFieldLayoutItems, getRemovedFields, hasPermission, isStatusChangeRequired, populateFields, validateFields, validateTargetStatus
public DefaultSubTaskToIssueConversionService(PermissionManager permissionManager, WorkflowManager workflowManager, FieldLayoutManager fieldLayoutManager, IssueTypeSchemeManager issueTypeSchemeManager, JiraAuthenticationContext jiraAuthenticationContext, FieldManager fieldManager, IssueLinkManager issueLinkManager, SubTaskManager subTaskManager, IssueEventManager issueEventManager, IssueEventBundleFactory issueEventBundleFactory, TxnAwareEventFactory txnAwareEventFactory)
public boolean canConvertIssue(JiraServiceContext context, Issue issue)
IssueConversionService
canConvertIssue
in interface IssueConversionService
context
- JIRA Service Contextissue
- issue to convertpublic void validateTargetIssueType(JiraServiceContext context, Issue issue, IssueType issueType, String fieldNameIssueTypeId)
IssueConversionService
validateTargetIssueType
in interface IssueConversionService
context
- jira service contextissue
- issue to convertissueType
- target issue typefieldNameIssueTypeId
- form field name of the issue type idprotected boolean canIssueSecurityFieldIgnore()
canIssueSecurityFieldIgnore
in class DefaultIssueConversionService
public void preStoreUpdates(JiraServiceContext context, IssueChangeHolder changeHolder, Issue currentIssue, MutableIssue targetIssue)
preStoreUpdates
in interface IssueConversionService
context
- jira service contextchangeHolder
- holds all the change itemscurrentIssue
- original issue with no updatestargetIssue
- target issue with all fields updatedCopyright © 2002-2019 Atlassian. All Rights Reserved.