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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted an hour ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

10 views 0 2
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