Feature #16207

Use query name as the file name when exporting queries

Added by Martin Seener almost 9 years ago. Updated 3 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Issues
Target version:5.1.0
Resolution:Fixed

Description

By now if you export a custom issue query for ex. as a PDF, its named "issues.pdf" which says nothing and is inconvenient to handle. It would be much better to use the custom query name as the filename (whereas spaces are written as underscores). See my attached image as an example we use it would be cool to directly save it as "incidents_of_last_month.pdf".

Just better: Optionally add a date to it "incidents_of_last_month_2014-02-03.pdf".

We use such exports for some partners so this would really make our lifes easier

incidents.png (27.6 KB) Martin Seener, 2014-03-03 14:01

file_naming.diff Magnifier (3.66 KB) Mathias Nestler, 2014-04-05 21:00

file_naming2.diff Magnifier (4.56 KB) Mathias Nestler, 2014-05-12 23:18

feature-16207.patch Magnifier (6.5 KB) Mizuki ISHIKAWA, 2019-08-23 08:36

feature-16207-r19982.patch Magnifier (6.41 KB) Go MAEDA, 2020-08-22 08:16

feature-16207-r21769.patch Magnifier (6.34 KB) Go MAEDA, 2022-08-12 07:24

Associated revisions

Revision 21773
Added by Go MAEDA 3 months ago

Use query name as the file name when exporting queries (#16207).

Patch by Mizuki ISHIKAWA.

History

#1 Updated by Mathias Nestler over 8 years ago

change including tests attached

#2 Updated by Martin Seener over 8 years ago

  • Status changed from New to Resolved

see attached file_naming.diff for the resolving code parts. please merge and close this.

#3 Updated by Toshi MARUYAMA over 8 years ago

  • Status changed from Resolved to New

You need handle non ASCII filename.
See #16207.

#4 Updated by Toshi MARUYAMA over 8 years ago

Toshi MARUYAMA wrote:

You need handle non ASCII filename.
See #16207.

Sorry, it is #16711.

#5 Updated by Mathias Nestler over 8 years ago

Added fix to handle non ASCII filenames. The new diff file contains the complete change.

#6 Updated by Mathias Nestler over 8 years ago

Toshi MARUYAMA wrote:

Toshi MARUYAMA wrote:

You need handle non ASCII filename.
See #16207.

Sorry, it is #16711.

Have you seen the fix?

#7 Updated by Mathias Nestler over 8 years ago

Mathias Nestler wrote:

Toshi MARUYAMA wrote:

Toshi MARUYAMA wrote:

You need handle non ASCII filename.
See #16207.

Sorry, it is #16711.

Have you seen the fix?

#8 Updated by Mizuki ISHIKAWA over 3 years ago

I modified patch file_naming2.diff to apply to the trunk.
This patch renames issues.csv, issues.pdf and timelog.csv to custom field name.

#9 Updated by Go MAEDA over 3 years ago

  • Target version set to Candidate for next major release

#10 Updated by Go MAEDA over 2 years ago

Update the patch for r19982.

#11 Updated by Go MAEDA 4 months ago

Setting the target version to 5.1.0.

#12 Updated by Go MAEDA 4 months ago

  • Category changed from PDF export to Issues

#13 Updated by Go MAEDA 3 months ago

  • Subject changed from File naming of exported custom queries to Use query name as the file name when exporting queries
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you.

#14 Updated by Go MAEDA 3 months ago

  • Status changed from New to Closed

Also available in: Atom PDF