Feature #13767

Export permissions report to CSV

Added by Philippe B. over 8 years ago. Updated 7 months ago.

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

0%

Category:Permissions and roles
Target version:4.2.0
Resolution:Fixed

Description

Hi,

My department hosts projects for many other departments within my company and we had to duplicate and customize the roles for each department.

As they aren't "administrator" they can't have access to the permissions report, so they ask use to get a PDF to see how their profiles are set.

We currently have 15 different roles and if we print the "Permissions report" it doesn't fit in the width.
My idea was to export the table into a CSV and then clean the unwanted columns.

Thanks

Phil

issue_13767.patch Magnifier (2.25 KB) David Escala, 2016-12-14 13:18

13767.patch Magnifier (4.68 KB) Yuichi HARADA, 2021-03-03 09:13

13767-v2.patch Magnifier (4.58 KB) Go MAEDA, 2021-03-09 14:38

0001-Added-an-option-form-so-that-you-can-select-the-enco.patch Magnifier (2.8 KB) Yuichi HARADA, 2021-03-16 05:50

Associated revisions

Revision 20778
Added by Go MAEDA 8 months ago

Export permissions report to CSV (#13767).

Patch by David Escala and Yuichi HARADA.

Revision 20779
Added by Go MAEDA 8 months ago

Remove unnecessary `include` added in r20778 (#13767).

Revision 20824
Added by Go MAEDA 7 months ago

Allow selecting encoding when exporting permission reports as CSV (#13767).

Patch by Yuichi HARADA.

History

#1 Updated by Kirpal Sukumar about 5 years ago

+1 on this - but I'd also like to be able to export to PDF

#2 Updated by David Escala almost 5 years ago

Attached patch adds an "Also available in: CSV" link to "Permissions report". It applies to version 3.3

#3 Updated by Pavel Kestefran over 4 years ago

Great patch David, thank you.

Also is there any chance to have such functionality in form of macro?
Maybe it would be easier to share the report with users on wiki.

#4 Updated by Shreyas Moolya over 4 years ago

David Escala wrote:

Attached patch adds an "Also available in: CSV" link to "Permissions report". It applies to version 3.3

i am unable to apply this patch through gitbash..is there any other method by which it could be done?

#5 Updated by Toshi MARUYAMA over 4 years ago

Shreyas Moolya wrote:

is there any other method by which it could be done?

On your Redmine root:

$ patch -p1 < issue_13767.patch 
patching file app/controllers/roles_controller.rb
patching file app/helpers/roles_helper.rb
patching file app/views/roles/permissions.html.erb

#6 Updated by Martina A. about 2 years ago

+1 on this feature request

#7 Updated by Benjamin GUILLAUME 9 months ago

Hello,

This patch does not seem to work on Redmine 4.1.1 ? Is there a way to adapt it ?

Thanks !

#8 Updated by Yuichi HARADA 8 months ago

I fixed issue_13767.patch to work on Redmine-trunk( r20759 ). I created a functional test and include it in a patch.

#9 Updated by Go MAEDA 8 months ago

  • Target version set to Candidate for next major release

#10 Updated by Go MAEDA 8 months ago

#11 Updated by Go MAEDA 8 months ago

  • Subject changed from Export to CSV the permissions report to Export permissions report to CSV
  • Target version changed from Candidate for next major release to 4.2.0

Setting the target version to 4.2.0.

#12 Updated by Go MAEDA 8 months ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

#13 Updated by Yuichi HARADA 7 months ago

Added an option form so that you can select the encoding when exporting CSV.

#14 Updated by Go MAEDA 7 months ago

  • Status changed from Closed to Reopened

#15 Updated by Go MAEDA 7 months ago

  • Status changed from Reopened to Closed

Yuichi HARADA wrote:

Added an option form so that you can select the encoding when exporting CSV.

Committed the change in r20824.

Also available in: Atom PDF