title: Scheduled reports using JasperReports Server
body: <p>I have a report designed using Jaspersoft iReport Designer 5.1 with two input parameters defined with a default value expression to define a date range</p>
  
  <pre><code>&lt;parameter name="lowerDate" class="net.sf.jasperreports.types.date.DateRange"&gt;
      &lt;parameterDescription&gt;&lt;![CDATA[Enter Lower date]]&gt;&lt;parameterDescription&gt;
      &lt;defaultParameterExpression&gt;&lt;![CDATA[new net.sf.jasperreports.types.date.DateRangeBuilder("YEAR").toDateRange().getStart()]]&gt;&lt;/defaultValueExpression&gt;
  &lt;/parameter&gt;
  
  &lt;parameter name="upperDate" class="net.sf.jasperreports.types.date.DateRange"&gt;
      &lt;parameterDescription&gt;&lt;![CDATA[Enter Upper date]]&gt;&lt;parameterDescription&gt;
      &lt;defaultParameterExpression&gt;&lt;![CDATA[new net.sf.jasperreports.types.date.DateRangeBuilder("DAY").toDateRange().getEnd()]]&gt;&lt;/defaultValueExpression&gt;
  &lt;/parameter&gt;
  </code></pre>
  
  <p>In the report configuration in JRS I have defined the input parameters and bound them to the report parameter names and set them as not mandatory. The report runs just fine and populates the date fields appropriately with the year start date and today's current date without prompting.</p>
  
  <p>My issue is I cannot get the same behaviour when the report is run via a schedule which I have configured to run daily. In the schedule configuration, as I did not make the input parameters as mandatory, are blank - assuming the default values as specified in the report should be used, however the 'upperDate' parameter is not reflecting the current day but retaining the original value from the report first ran. I've tried various combinations in the config but nothing seems to make the report update the date values during a scheduled run.</p>
  
  <p>Any help would be most appreciated.</p>