For this function to work, one must have ‘Schedule issue permission’ by JIRA Administrator.