com.atlassian.jira.bc.subtask.conversion
Interface IssueToSubTaskConversionService

All Superinterfaces:
IssueConversionService
All Known Implementing Classes:
DefaultIssueToSubTaskConversionService

@PublicApi
public interface IssueToSubTaskConversionService
extends IssueConversionService

Service class to reveal all business logic in converting an issue to a sub-task, including validation. This business component should be used by all clients: web, rpc-soap, jelly, etc.


Method Summary
 void validateParentIssue(JiraServiceContext context, Issue issue, Issue parentIssue, String fieldNameParentIssueKey)
          Validates the given parent issue key for issue key.
 
Methods inherited from interface com.atlassian.jira.bc.subtask.conversion.IssueConversionService
canConvertIssue, convertIssue, getFieldLayoutItems, getRemovedFields, getRemovedFields, hasPermission, isStatusChangeRequired, populateFields, preStoreUpdates, validateFields, validateTargetIssueType, validateTargetStatus
 

Method Detail

validateParentIssue

void validateParentIssue(JiraServiceContext context,
                         Issue issue,
                         Issue parentIssue,
                         String fieldNameParentIssueKey)
Validates the given parent issue key for issue key. Any errors are communicated back via error collection in the context.

Parameters:
context - jira service context
issue - issue to convert
parentIssue - possible parrent issue to check
fieldNameParentIssueKey - form field name of the parrent issue key


Copyright © 2002-2013 Atlassian. All Rights Reserved.