Alerts not working in scripted dashboard

Are alerts expected to work in scripted dashboards? I alerts working in non-scripted dashboards. I have programmatically added alerts in my scripted dashboard, and they are not working. Is this expected? Is there a trick I have to know to get it to work? Let me know if you would like me to post the javascript code for the scripted dashboard. Thank you.