Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to show specific issues fields in the card #40

Open
EchedelleLR opened this issue Aug 31, 2022 · 7 comments
Open

Add possibility to show specific issues fields in the card #40

EchedelleLR opened this issue Aug 31, 2022 · 7 comments

Comments

@EchedelleLR
Copy link

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

@happy-se-life
Copy link
Owner

Hi,

I started checking this issue.

@happy-se-life
Copy link
Owner

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?

@EchedelleLR
Copy link
Author

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.

@happy-se-life
Copy link
Owner

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

@happy-se-life
Copy link
Owner

Hello,

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

@EchedelleLR
Copy link
Author

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.

@happy-se-life
Copy link
Owner

Hi,

Started accepting donations using Liberapay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants