Project

General

Profile

Actions

Feature #1179

closed

Optionally allow Text and Long Text custom fields support wiki formatting

Added by Leandro Lucarella over 16 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Custom fields
Target version:
Start date:
2008-05-05
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

It would be very helpful if Text and Long Text custom fields support wiki formatting. It would be even better if the wiki support can be activated or deactivated in a per-field basis, using a checkbox in the custom field properties (something like "Allow wiki format" next to the "Required" checkbox).


Files

screenshot1.jpg (18.4 KB) screenshot1.jpg Luis Blasco, 2015-12-29 19:38

Related issues

Related to Redmine - Feature #2906: Refine the custom fields display for projectsNewJean-Philippe Lang2009-03-05

Actions
Related to Redmine - Feature #1358: Link_to for Custom FieldClosedJean-Philippe Lang2008-06-03

Actions
Related to Redmine - Feature #5794: URL custom fieldsClosed2010-07-01

Actions
Related to Redmine - Feature #10398: Add a new custom field type with tags replacementsClosedJonas De Meulenaere

Actions
Related to Redmine - Feature #5250: Custom Fields may allow full text transformationClosed2010-04-06

Actions
Related to Redmine - Feature #7067: Develop editable textile custom fieldClosed2010-12-07

Actions
Related to Redmine - Feature #13588: Make long-text and string fields textilizable by defaultClosed

Actions
Related to Redmine - Feature #202: Textilization of Documents, News and Timelog-entry commentsNew

Actions
Related to Redmine - Feature #3543: Improve 'long text' custom fieldsClosed2009-06-25

Actions
Related to Redmine - Feature #21924: Formatting buttons on long text custom fieldsClosed

Actions
Related to Redmine - Defect #30027: Some styles (for ex: borders for tables) in a custom field with text formatting enabled are not displayedClosedGo MAEDA

Actions
Has duplicate Redmine - Feature #6236: Wikified custom fieldsClosed2010-08-27

Actions
Has duplicate Redmine - Feature #13183: add wiki format to custom issue fields (text areas) optionallyClosed

Actions
Actions #1

Updated by Arthaey Angosii over 16 years ago

Implementing this would effectively make issue #1358 a duplicate of this by allowing me to have links in any custom field.

Actions #2

Updated by Michael Burton over 15 years ago

Related issues: #1358, #2906

Actions #3

Updated by Jean-Baptiste Barth over 14 years ago

Can you try the patch I proposed in #5794 and tell me if it works and fit your needs ?

Actions #4

Updated by Leandro Lucarella over 14 years ago

Jean-Baptiste Barth wrote:

Can you try the patch I proposed in #5794 and tell me if it works and fit your needs ?

I'm sorry, I don't have a Redmine instance to play with at the moment, but I took to the patches and, if I understand correctly what they do (bare in mind I'm not well versed in Ruby nor familiar with Redmine code), it's exactly what I wanted.

I prefer to have the option to textilize or not, but it wouldn't be too terrible if there is no option (it will not be backward compatible, though, and could cause some pain in people already using it as plain text).

Thanks!

Actions #5

Updated by ju mar over 13 years ago

+1
I am also interested in having wiki-formatting in Text/Long Text custom fields. And I have a redmine install for testing purpose so I can test patches if needed.

Actions #6

Updated by Andriy Lesyuk about 13 years ago

I just have released Extended fields plugin which adds "Wiki text" custom field type... Please check.

Actions #7

Updated by Maxim Nikolaevich over 12 years ago

Guys,
I think long text custom field should be used as "description" field (i mean full support wiki syntax) and simple text field should not.
I believe it solves many issues related with this issue with simplest way - without any additional options

Actions #8

Updated by Anthony BOUQUET almost 12 years ago

+1 for this feature :)

Actions #9

Updated by Ilya Ishmatov almost 12 years ago

Hi i use fix on my redmine:
I use Redmine::WikiFormatting.to_html for "text" custom field.

./app/helper/issue_helper.rb

def render_custom_fields_rows(issue)
return if issue.custom_field_values.empty?
ordered_values = []
half = (issue.custom_field_values.size / 2.0).ceil
half.times do |i|
ordered_values << issue.custom_field_values[i]
ordered_values << issue.custom_field_values[i + half]
end
s = "<tr>\n"
n = 0
ordered_values.compact.each do |value|
s << "</tr>\n<tr>\n" if n > 0 && (n % 2) == 0
s << "\t<th>#{ h(value.custom_field.name) }:</th><td>#{ show_value(value) }</td>\n"
n += 1
end
s << "</tr>\n"
s.html_safe
end

./lib/redmine/custom_field_format.rb

def format_as_text(value)
Redmine::WikiFormatting.to_html(Setting.text_formatting, value.to_s)
end

['string','int','float','list'].each do |name|
define_method("format_as_#{name}") {|value| return value}
end

Actions #10

Updated by Dipan Mehta over 11 years ago

Andriy Lesyuk wrote:

I just have released Extended fields plugin which adds "Wiki text" custom field type... Please check.

I personally use this plugin. However, there is a critical challenge I faced which didn't allow me to use it fully. The 'Wiki text' is a new type of field and fields types are not changeable AFTER they are created. so long text fields which we have already created cann't take the benefit of this. I know I could tinker DB - but want to avoid this.

Actions #11

Updated by Dipan Mehta over 11 years ago

Add Related #13588.

Actions #12

Updated by Maxim Nikolaevich over 11 years ago

Maxim Nikolaevich wrote:

Guys,
I think long text custom field should be used as "description" field (i mean full support wiki syntax) and simple text field should not.
I believe it solves many issues related with this issue with simplest way - without any additional options

I just wanna show pic about extra options: http://verkoren.wordpress.com/2012/04/07/your-companys-app-vs-typical-apple-and-google-products/
Guys from team - i can do patch to extend long text with full wiki support - If you agree with me that this best solution

Actions #13

Updated by Dipan Mehta over 11 years ago

Other Related #202, #7067, #5250

Actions #14

Updated by Dipan Mehta over 11 years ago

Maxim Nikolaevich wrote:

I just wanna show pic about extra options: http://verkoren.wordpress.com/2012/04/07/your-companys-app-vs-typical-apple-and-google-products/
Guys from team - i can do patch to extend long text with full wiki support - If you agree with me that this best solution

Don't know what exactly was the connotation of the link you posted. Never-the-less, I think this is the essential feature that is quite desirable.

+100

Actions #15

Updated by Dipan Mehta over 11 years ago

Add related #5250, #7067

Actions #16

Updated by Daniel Felix over 11 years ago

Dipan Mehta wrote:

Add related #5250, #7067

Done. Thanks for the hint.

Actions #17

Updated by john aylward over 11 years ago

Dipan Mehta wrote:

Andriy Lesyuk wrote:

I just have released Extended fields plugin which adds "Wiki text" custom field type... Please check.

I personally use this plugin. However, there is a critical challenge I faced which didn't allow me to use it fully. The 'Wiki text' is a new type of field and fields types are not changeable AFTER they are created. so long text fields which we have already created cann't take the benefit of this. I know I could tinker DB - but want to avoid this.

The other issue I have with this is that the wikitext field is still in the column layout, so an H1 or H2 gets wrapped, and I found it wasn't very useful. I wanted to use it as a place to keep test cases for our QA people, but it's so unwieldy at the moment, I'll stick with using the description field.

I think what I'm looking for is more of a secondary description field. Somewhere I can put nicely formatted text for test cases that doesn't require me to update the description or get lost in the Notes.

Actions #18

Updated by David Chiew over 11 years ago

+100 for this feature, this feature would be awesome. I'm also trying to use long text fields to put Test Cases in (its a required field so we don't forget!), and the formatting of this field would really help

Actions #19

Updated by Jean-Philippe Lang about 11 years ago

  • Target version set to 2.5.0
Actions #20

Updated by Toshi MARUYAMA about 11 years ago

  • Related to Feature #3543: Improve 'long text' custom fields added
Actions #21

Updated by Jean-Philippe Lang almost 11 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Feature added in 2.5.0, Text and Long text custom fields now support optional text formatting.

Actions #22

Updated by Dipan Mehta almost 11 years ago

Will this allow existing text fields to get text formatting? or will it be applicable on new fields taken only?

Actions #23

Updated by Jean-Philippe Lang almost 11 years ago

The option is available for existing or new custom fields.

Actions #24

Updated by Darth Vader almost 11 years ago

Which checkin is this change implemented in?

Actions #25

Updated by Luis Blasco about 9 years ago

Sorry if this is not the place to post but I can't see this feature having correctly been implemented in Redmine (old or latest versions).

When I create a long text custom field, I click on the check box "Text formatting", but when used in a tracker the field doesn't show the text formatting icons above.

Any help would be appreciated.

Thanks!

Actions #26

Updated by Toshi MARUYAMA about 9 years ago

Luis Blasco wrote:

When I create a long text custom field, I click on the check box "Text formatting", but when used in a tracker the field doesn't show the text formatting icons above.

What do you mean "icons"?

Actions #27

Updated by Luis Blasco almost 9 years ago

Actually I meant the formatting buttons above the text field.

Actions #28

Updated by Toshi MARUYAMA almost 9 years ago

Luis Blasco wrote:

Actually I meant the formatting buttons above the text field.

Please create new issue for request.

Actions #29

Updated by Luis Blasco almost 9 years ago

Done. Thank you.

Actions #30

Updated by Toshi MARUYAMA almost 9 years ago

FTR: #21924

Actions #31

Updated by Mischa The Evil over 7 years ago

  • Related to Feature #21924: Formatting buttons on long text custom fields added
Actions #32

Updated by Go MAEDA about 6 years ago

  • Related to Defect #30027: Some styles (for ex: borders for tables) in a custom field with text formatting enabled are not displayed added
Actions

Also available in: Atom PDF