I am using a condition in my script in the REST endpoint and I am receiving the following errors. JiraHelper and Issue are not recognized.
Anyone knows what the problem is and what needs to be fixed?
Here is the code:
package CreateMultipleSubtasks import org.apache.log4j.Logger import com.atlassian.jira.plugin.webfragment.model.JiraHelper import com.atlassian.jira.component.ComponentAccessor def log1 = Logger.getLogger("atlassian-jira.log") log1.warn("MOUNA BEFORE") Configuration_CreateMultipleSubtasks conf = new Configuration_CreateMultipleSubtasks() def subTaskCreatorHashMap= conf.getSubTaskCreatorHashMap() String projectKey = subTaskCreatorHashMap["projectKey"]; String issueTypeName = subTaskCreatorHashMap["issueTypeName"]; log.warn("MOUNA PROJECT KEY "+ projectKey+" issuetypename "+issueTypeName) def val=jiraHelper.project?.key==projectKey && issue.issueType.name==issueTypeName return val
It looks like you're new here. Sign in or register to get started.