Project

General

Profile

How can Redmine be configured to show a customized field under the section RELATED ISSUES of the Issue VIEW?

Added by Jörg Hoppe over 10 years ago

How can Redmine be configured to show a customized field under the section 'Related Issues' of the Issue 'View'? (See attachment)


Replies (3)

RE: How can Redmine be configured to show a customized field under the section RELATED ISSUES of the Issue VIEW? - Added by Mischa The Evil over 10 years ago

Jörg Hoppe wrote:

How can Redmine be configured to show a [...]

Vanilla Redmine doesn't provide such a configuration option. You can add this yourself1 by changing the source - either via a plugin or by modifying it directly. See for an example (to show the other issue's done ratio) the patchfile provided in #3425.

Jörg Hoppe wrote:

[...] to show a customized field under the section 'Related Issues' of the Issue 'View'? (See attachment)

The screenshot shows me that you want to add the other issue's priority to the view, instead of the data from a customized field. If the first is true, then a change like in the referenced patch could suffice. OTOH, if you indeed want to add (display) data from an issue custom field on that view, it won't. In that case you need to make sure that you also cover the cases where no custom values are available, handle the different ways of how custom values can be displayed (think about multi-select, list custom fields for example), etc...

1 though, make sure that you know what you are doing ;)

RE: How can Redmine be configured to show a customized field under the section RELATED ISSUES of the Issue VIEW? - Added by Jörg Hoppe over 10 years ago

Hi Mischa, your points were very helpful.
With the help of our IT admin, this was successfully done... finally :-). We did follow the instruction under #3425.

Do you or anybody else have a hint for as well on how to do the same on 'Sub Tasks'?

RedmineSubtasks.png

Edit by Mischa The Evil: resized and thumbnailed the screenshot.

RE: How can Redmine be configured to show a customized field under the section RELATED ISSUES of the Issue VIEW? - Added by Mischa The Evil over 10 years ago

Jörg Hoppe wrote:

Do you or anybody else have a hint for as well on how to do the same on 'Sub Tasks'?

For such a modification you'll need to patch IssuesHelper#render_descendants_tree to include something like:
  • content_tag('td', h(child.priority.name)) for adding the child's priority,
  • content_tag('td', h(child.start_date)) for adding the child's start date and
  • content_tag('td', h(child.due_date)) for adding the child's due date.

Don't forget to concatenate the properties properly...

Disclaimer: I haven't actually tested this.

    (1-3/3)