Hi there,
In my project workflow for a transition i added script runner postfunction to create automatic subt-task.
When i execute the workflow transition it creates the automatic sub-task. But i want create sub-task based on the fixversion value below you can see the condition of existing script so please help me with this script create sub-task based on the fixversion. Please suggest me how to achieve this script.
import com.atlassian.jira.component.ComponentAccessor
def subtasks = issue.subTaskObjects
if(subtasks.find{it.summary == "Automated Test"})
{
return false
}
else
{
return true
}
Thanks,
Siva.