Feature #1358
closedLink_to for Custom Field
90%
Description
It would be nice to have a link_to field in the custom fields.
Files
Related issues
Updated by Jean-Philippe Lang over 16 years ago
- Target version deleted (
0.8)
What do you mean exactly ?
Updated by Arthaey Angosii over 16 years ago
I would like this too, assuming I understand what the OP is asking for. What I want is to create links from bugs to test cases (source:path/to/testcase). This could also be implemented per issue #1179.
Updated by Aron Burrell over 15 years ago
- File Picture_19.png Picture_19.png added
I'd like to bump this as a feature request. We use several systems internally to track projects/trouble tickets and being able to set links on custom fields to external sites would be handy.
For example, a custom field's configuration would have an additional line called 'URL' which allows a user to formulate a URL for a link with substitution text for the field value.
As a bonus, substitutions for project/issue/user/timetracking identifier would be cool.
Attaching a sample image from Request Tracker, which has a custom field linking system that allows me to link a ticket to a project in Redmine.
Updated by Aron Burrell over 15 years ago
- File linkable_custom_fields.diff linkable_custom_fields.diff added
- % Done changed from 0 to 90
I have a patch that'll accomplish the job here. This is patched against svn rev 2552.
Notes: I included url value substitution and link generation in the show_value helper function which meant I also had to apply the following changes:
- h() of the custom field value is now included in show_value and removed from the views show_value is used in. If I didn't do this, the links couldn't function.
- defined show_value_plain on the custom fields helper to return plaintext values for use in the plaintext mailer view and query helper
No validation is currently being done against the URL mask in my patch, but some simple validation might be advisable.
I hope you'll include this in the next version.
Updated by Aron Burrell over 15 years ago
I should also mention it'll require a db:migrate to add the url column to the custom_fields table.
Updated by Lalit Roul almost 15 years ago
This is also what we would like to have a custom field of URL
type. In the view mode this field should appear as a link in the issue page. For example we would also like to have a issue linked to a customer case which is stored in a CRM whenever applicable.
+1 for us.
Updated by Aitor Martínez almost 15 years ago
Hello.
What about applying "Linkable Custom Fields patch" of this task to the trunk?
It seems to work fine.
Greetings.
Lalit Roul wrote:
This is also what we would like to have a custom field of
URL
type. In the view mode this field should appear as a link in the issue page. For example we would also like to have a issue linked to a customer case which is stored in a CRM whenever applicable.+1 for us.
Updated by Vladimir Kovacik over 14 years ago
- File linkable_custom_field_redmine_0.9.2_v1.0.patch linkable_custom_field_redmine_0.9.2_v1.0.patch added
Since patch linkable_custom_fields.diff cannot be applied on Redmine 0.9.2 (due to refactored 0.9.x code) I have updated and extended the original patch.
I would like to thank Aron for the original patch. It helped to get an overview which parts are affected.
I have tested Redmine 0.9.2 code but it may happened that I used some other patches meantime.
Updated by Bogdan Matu over 14 years ago
++1 For the trunk merge....
^^ does that patch work for the 0.9.3 or the upcoming 0.9.4 ? I tried applying it in 9.3 and i got a couple errors.
Updated by Chris Rowe over 14 years ago
+1 for us. We use http://sourcerepo.com/ for our Redmine hosting so getting this into an actual release that they could install would be great. Thanks for all the work.
Updated by Jean-Baptiste Barth over 14 years ago
Can you try the patch I proposed in #5794 ?
Tell me if it works and fits your needs.
Updated by Chris Rowe over 14 years ago
Unfortunately we are not in control of our hosting so I can not test it but it sounds like just what we would like. I like the full format option because it should enables links to tickets and commits as well.
Updated by Brian Lacy almost 14 years ago
We're just getting started with Redmine, and I've added a Custom Field on Issues called "URL" -- intended primarily for test cases. As a web developer, being able to link to a page where an issue is occurring or which is the starting point for a new feature would be a huge help -- but unfortunately, there's no way to auto-highlight that URL.
Can you folks please resurrect this issue and add a new custom field type "URL"? Would be very handy!
Thanks!
Updated by Andriy Lesyuk almost 13 years ago
Just published my plugin which adds "Link" type: http://projects.andriylesyuk.com/projects/redmine-fields
Also there is Eric's plugin which adds "URL" custom field type: https://github.com/edavis10/redmine_url_custom_field
Updated by Daniel Felix about 12 years ago
Well some simple type of custom field format like "link" would be quite useful. This would be quite helpful even if no id replacement would be done.
Linking to tickets and revisions is currently implemented.
Updated by Jean-Philippe Lang almost 11 years ago
- Related to Feature #5250: Custom Fields may allow full text transformation added
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
2.5.0 adds a "Link" custom field format but also adds the ability for other custom field formats to render values as a http link to a configurable URL with the following substitution available:
%value%
=> the custom field value%id%
=> id of the customized object%project_id%
=> id of the project of the customized object if defined%project_identifier%
=> identifier of the project of the customized object if defined%m1%, %m2%...
=> capture groups matches of the custom field regexp if defined
Updated by Toshi MARUYAMA over 9 years ago
- Has duplicate Feature #5833: Ability to specify template for a URL on a user defined column added
Updated by Go MAEDA over 7 years ago
- Has duplicate Feature #2810: Custom formatting of custom fields added