Auto-generated field in JIRA

Hello, we use JIRA as a bug-tracking system. When we resolve an issue the fix is deployed to test environment and gets a domain that looks like where key-523 is JIRA issue number.

How can I setup JIRA to have auto-generated fields that contains only a link to the test domain based on the issue number? It would greatly speed-up our testing process if we can click a link and go to testing environemnt rather than manually type it everytime.

Thank you in advance.

3 answers

1 accepted

You can use the SIL Script Custom Field available with this plugin. This is a calculated custom field using a simple scripting language. The code would look like this:

if(resolution == "<insert_your_"fixed"_resolution>"){
    return "http://"+ key + "";

You can also return wiki-style text and use the Wiki renderer to make it clickable.

Install Jamie's Script Runner plugin and use the custom field Scripted Field that comes with it. Use a simple script to get issue.key and build and html string that includes the href link, and probably target="_blank" to open the link in a new window.

Went with teh SIL plugin because you cannot update custom fields in the workflow. But at least I got that working - thanks.

My best guess would be to write a small custom plugins:

  1. create a customfield of type 'URL', make it only viewable in your screens.
  2. create a custom post-function in JIRA that will simply update this field with value "http://" + issue.getKey()+ ""
  3. Add this post-function into your resolve transition.

But that requires write a postfunction, not that easy if you have never done that before (see )

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

77 views 0 5
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