I'd like to create a custom field that allows other developers, QA testers, etc. to specify an external issue ID that automatically creates a link that incorporates the field value. We're currently still using a separate bug tracker for our QA team, although we're migrating away from it.
I am only able to select from a limited subset of renderers for a custom field. Is there a way to create a new custom renderer that will let me build a URL based on the field's value as part of the renderer?
You can develop you own custom field, based on some generic custom field, for example, GenericTextCFType. Then in your view template you can make any links you want. Here how youw view.vm could be:
#if ($value) <a href='http://your_inner_tracker?id=$value'>Inner tracker</a> #end
So, absolutely no Java coding is necesarry.
Hope, it helped.
Thanks so much for your answer! Does this solution absolutely have to rely on modification of the Velocity template? If JIRA is upgraded, this change will be lost.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you explain this a bit further? Is it possible to package this into a plugin?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know this is old, but could someone elaborate on this? I know how to change the renderer, but my only options are Default Text and Wiki Style. Where does this Velocity code get saved?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@James Tuttle, sorry can't understand you. You would like to know where to place velocity template?
Anyway, there is my old project, very simple one. Maybe it could help you somehow: https://github.com/grundic/jira-color-custom-field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.