happy-se-life / kanban

Kanban plugin for redmine

Home Page:https://it-managers-life.hatenablog.com/entry/2019/03/24/112052

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add possibility to show specific issues fields in the card

EchedelleLR opened this issue · comments

I would be interested in choosing some custom fields like the spent time on each task.

I attach a picture of some possibility provided from another extension which is a bit limited:
image

Hi,

I started checking this issue.

Hello,

If the custom field is in text format.
I was able to confirm that it can be achieved with code like this

in plugins/kanban/app/views/kanban. line 299-306.

<!-- Custom Field -->
   <div style="float: right; font-size: smaller">
     <% cv = issue.custom_field_values.detect {|issue| issue.custom_field.name == "New Text Field"} %>
     <%= cv.value if cv %>
   </div>

It seems that it is necessary to support the display of about 10 types of formats in order to officially incorporate it into the plug-in. The above is an example of the simplest possible text.
Do you have an opinion on which direction is better?

Each field has an id attached to it as far as I could see and other Redmine plugins like one to edit visibility of core fields use that as base.

Not sure it dealing with names is possible.

Hi,

For spent time only, you can display spent time on the card with code like below.
I think it would be a bit difficult to have a mechanism that allows you to freely change the settings of the items displayed on the card.
Many people may want to show spent time, and I'm interested in that.

                      <!-- Spent hours -->
                      <div style="float: right; font-size: smaller">
                        spent hours is 
                        <%= issue.spent_hours %>
                        <%= I18n.t(:kanban_hours_abbreviation) %>
                      </div>

issue details
image

card on kanban
image

Hello,

I'm sorry that I couldn't fulfill all your requests. Spent hours can now be displayed.

Dont worry, spent time is already a big thing we use. Thank you, assignee is already showed and also tracker name.

The only thing is the other request to filter by tracker but I have no issues to wait.

Is there also a way to sponsor you? Maybe LiberaPay or OpenCollective for this project.

Maybe this issue should be maintained opened until such an options view is implemented even if this part was fixed.

Hi,

Started accepting donations using Liberapay.