Project

General

Profile

Use Project Identifier Instead of Project Name in Issue List

Added by Scott C almost 2 years ago

Hi everyone,

In 5.0, we can go to Admin > Settings > Issue Tracking and set the default columns to use in the Issue List (aka All Issues) page. However, in the list of available columns, "Project Identifier" is missing - there's just "Project". My company uses our clients' names as the Project name, so the Project can get very long, making the issue list almost unreadable.

Ideally, I'd like the option to have Identifier in the list of Available Columns ... is this possible?

Failing that, hack :-P

I've tracked down the column code to (I think) https://github.com/redmine/redmine/blob/master/app/models/issue_query.rb and specifically this line:

QueryColumn.new(:project, :sortable => "#{Project.table_name}.name", :groupable => true),

However, no matter what I do I can't get it to use identifier instead of name.

Any help would be greatly appreciated,
-Scott.


Replies (1)

RE: Use Project Identifier Instead of Project Name in Issue List - Added by Peter Kövesdi 12 months ago

I was able to add a line:

QueryColumn.new(:identifier, :sortable => "#{Project.table_name}.identifier", :groupable => true),

there and got the corresponding field in the GUI. Howser, if I use it in the query, I get an 500 error. So, next "expert", next step?

    (1-1/1)