## Issue Tracker Report Script "Unfinished-issues-in-the-last-30-days"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=issue
##title=Unfinished issues in the last 30 days
##
# All those issues that haven't reached further than Open or Taken
# in in the last 30 days

now = context.ZopeTime()
if now - issue.getIssueDate() <= 30:
    if issue.getStatus().lower() in ('open','taken'):
        return 1


# default thing to do is to NOT include the issue
return False
