Is it possible to add conditions in configuration page of custom reports


#1

Hi
I am creating a custom report and need to add a checkbox that should be enabled or not based on the selection of a previous checkbox.

As the configuration page of the report is based on the within an xml file (atlassian-plugin.xml):

<report name="Work Item Burn Up" i18n-name-key="work-item-burn-up.name" key="work-item-burn-up" class="com.atlassian.plugins.tutorial.jira.reports.WorkItemBurnUp">
    <description key="work-item-burn-up.description">The Work Item Burn Up Report</description>
    <resource name="view" type="velocity" location="/templates/reports/work-item-burn-up/view.vm"/>
    <resource name="i18n" type="i18n" location="WorkItemBurnUp"/>
    <label key="work-item-burn-up.label"></label>
    <properties>
      <property>
         <key>filterid</key>
         <name>Saved Filter:</name>
         <description>Filter to use as the basis of the graph</description>
         <type>filterpicker</type>
         <i18n>false</i18n>
      </property>
      <property>
         <key>startDate</key>
         <name>work-item-burn-up.startdate</name>
         <description>work-item-burn-up.startdate.description</description>
         <type>date</type>
      </property>
      <property>
         <key>endDate</key>
         <name>work-item-burn-up.enddate</name>
         <description>work-item-burn-up.enddate.description</description>
         <type>date</type>
      </property>
      <property>
        <key>showSize</key>
        <name>Based on Size Value</name>
        <description>Checked: Chart will be based on Size value. Unchecked: Chart will be based on Story Points value</description>
        <type>checkbox</type>
      </property>
      <property>
        <key>linesmeet</key>
        <name>Blue line meets Forecast line</name>
        <description>work-item-burn-up.show.blue.forecast.lines.meet</description>
        <type>checkbox</type>
      </property>
      <property>
         <key>showrels</key>
         <name>Show Projects' Releases</name>
         <description>work-item-burn-up.rels.desc</description>
         <type>checkbox</type>
      </property>
      <property>
         <key>showPIs</key>
         <name>Show Standard PIs</name>
         <description>Select if you want to show Standard PI "End Date" that fall in range date specified</description>
         <type>checkbox</type>
      </property>
    </properties>
  </report>

Haven’t found out a way to enable/add new properties (like checkboxes) according to some condition.

Thanks,

Edgar