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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,083 views 13 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot