Custom Field Renderer for External Issue ID

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?

1 answer

1 accepted

2 votes
Accepted answer

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.

Can you explain this a bit further? Is it possible to package this into a plugin?

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?

@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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,728 views 17 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you