Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-4521

Scheduled Report filename loses the dateformat date mapping when the export has zero issues

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • Xporter DC 7.4.6
    • None
    • Scheduled Reports
    • None
    • Jira DC 9.12.22

      Xporter DC 7.4.9

    • UNCOVERED

    Description

      Description
      When a Scheduled Report's JQL returns zero issues, any filename mapping that uses the dateformat function resolves to an empty string. The same configuration resolves correctly when the JQL returns issues. CurrentDate itself does resolve on empty runs; only the dateformat function returns empty.

      Pre-conditions

      • A JQL query that returns no issues (e.g. project = TEST AND summary ~ "zzzznomatch")

      How to reproduce

      1. Go to Administration > Manage apps > Xporter > Scheduled Reports and click Add.
      2. Set Export Data to JQL and use the query from the pre-conditions.
      3. Set the filename to ${dateformat("yyyy-MM-dd"):CurrentDate} EmptyTest.
      4. Add a "Save on Jira host" action, enable the report and let it run.

      Actual result/Attachments
      The file is saved as EmptyTest.xlsx, the date is missing and the name starts with a space.

      Filename mapping Issues returned Output filename
      ${dateformat("yyyy-MM-dd"):CurrentDate} 16 2026-09-25 EmptyTest.xlsx
      ${dateformat("yyyy-MM-dd"):CurrentDate} 0 EmptyTest.xlsx
      ${dateformat("yyyy-MM-dd"):CurrentDateTime} 0 EmptyTest.xlsx
      ${CurrentDate} 0 2026-09-25T14_40_00.153Z[Etc_UTC] EmptyTest.xlsx

      Expected result
      The file is saved as 2026-09-25 EmptyTest.xlsx, the same as when the JQL returns issues.

      Version

      • Jira DC 9.12.22
      • Xporter DC 7.4.9

      Workaround

      • Use ${CurrentDate} without dateformat. The date is kept, but it comes out as a raw timestamp with the server timezone appended.
      • If the empty files aren't needed, enable the Condition option so the report only runs when the JQL returns at least one issue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              joao.silva João Silva
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: