Default values for "Wiki text" custom fields not being applied
I want to set up a custom field that displays as a hyperlink, but without displaying the target URL (sort of like this).
First I tried the “Link” type, which did let me enter in the link. I saw your instructions on creating custom view templates, but that is somewhat beyond my skill level, so I tried doing this with “Wiki text” type instead. This worked! However, I can’t get the default value I specified to fill in automatically when I create a new issue. The field is always blank until I fill it in.
|Min - Max length||0 - 0|
|Hint||Replace only C00000|
Thank you for your work by the way; your plug-in is exceedingly useful!
#2 Updated by Andriy Lesyuk over 7 years ago
- Target version deleted (
That’s weird, because the “Wiki text” does not support regular expression... I guess you used some older version (not the one from SVN).
I can’t reproduce this on the latest source code (the default value gets into the form). In your case, I think, the regexp prevented the default value to get there... The regexp does not look to be correct (
\s can’t be used inside
[...], I believe).
#3 Updated by Jeremy Bailey over 7 years ago
Sorry for the long delay in responding. I will update to the latest version from SVN, and see if I’m able to reproduce the issue. We recently upgraded to the new 2.3-stable build (2.3.3), so this will verify your plug-in’s functionality with the latest Redmine version as well.