Project

General

Profile

Project name in "related issues" for cross-project links

Added by Harald Deischinger almost 2 years ago

When in the details view of an issue the related issues are nicely prefixed with the other project.

I would like to see that other project also in the issues table.
Is there some configuration I have not found yet?
Is there a simple way to modify the source code to do that?

I am using redmine 4.2.3.

Thanks


Replies (1)

RE: Project name in "related issues" for cross-project links - Added by Mischa The Evil almost 2 years ago

Harald Deischinger wrote:

Is there some configuration I have not found yet?

No, there isn't such an option.

Is there a simple way to modify the source code to do that?

You might be able to accomplish what you want by changing the source yourself. You can pass the :project => true argument to the respective link_to_issue() call by changing the following line in source:/branches/4.2-stable/app/helpers/queries_helper.rb#L257 from:

        value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,

to:

        value.to_s(item) {|other| link_to_issue(other, :subject => false, :tracker => false, :project => true)}.html_safe,

However, this warrants a caution as this is untested and might break other stuff. Additionally, you would need to manually maintain such a patch into the future yourself.

I am using redmine 4.2.3.

Be sure to upgrade to the latest 4.2.x (4.2.9 while I'm writing this) release as soon as possible first. A bunch of security issues were fixed in the intermediate releases (you can check out Security_Advisories yourself to see the whole list).

    (1-1/1)