I am getting the following error while creating a sub-ask on the create transition of a issue. Script was working fine in jira 5. After upgrading to jira 6 I get the following errors for users.
No signature of method: com.atlassian.jira.issue.managers.DefaultIssueManager.createIssueObject()
Pls help
this is the code to link the subtask
-----------------------------------------------------------------------------------------------------
//Linking the issue with parent
Map<String,Object> newIssueParams = ["issue":newSubtask] as Map<String,Object>;
log.warn("\n\n\nnewIssueParams: ---> ${newIssueParams.dump()}\n\n\n"); //Debug the parameters
//Get the user who is currently logged in
def currentUser = jiraAuthenticationContext.getUser();
log.warn("\n\n\n******\n\n\n");
//creating the issue that links the subtask and the current User
newSubtaskGV = issueManager.createIssueObject(currentUser,newIssueParams);
log.warn("***");
//reindexing
indexManager.reIndex(newSubtaskGV);
log.warn("***");
//link the subtask with the parent issue
subTaskManager.createSubTaskIssueLink(EmpIssue, newSubtask, componentManager.getJiraAuthenticationContext().getUser());
log.warn("Subtask ${newSubtask.getKey()} is created from ${issue.getKey()}");
log.warn("You're fine till here");
log.warn("\n\n");
issueLinkManager.createIssueLink(issue.getId(),newSubtask.getId(),Long.parseLong(linkID),0,user)
ComponentManager.getInstance().getIndexManager().reIndex(newSubtask)
---------------------------------------------------------------------------------------------------
Script stops because of this line
//creating the issue that links the subtask and the current User
newSubtaskGV = issueManager.createIssueObject(currentUser,newIssueParams);
log.warn("***");