Custom field using Script runner

It will be great if you can help me for few requirement or direct me to one who can help here. I want to have some customization for one of my project. Below we want to achieve.

Need help building two custom fields:

1) New Custom Field1: Need help building a custom field that is a jql lookup where a user can choose among issues that are filtered via jql query and the resulting choice will show the issue key in a field. On save, the key value is clickable and will navigate the user to the chosen issue.

2) Where an issue is chosen, also add a 'features' link that will list the chosen issue among the linked issues (we have a custom linktype we've created called "features/is feature of")

3) New Custom Field2: Need help building a second custom field that calls the value of Field1. Wherever this field is shown, it will look for a Field1 value first on the Epic, then on the Story/Task. Where none is found on either, the field value should be set to the key of the current issue. This way the field will never be empty. (we will use configuration to enable these fields among different issuetypes on specific projects)

Please feel free to reach out to me or Michael if you have any question.



1) You are going to need to write an add-on to do that.  ScriptRunner can do things like scripted fields and data manipulation, but that behaviour is going to need a full-on new field for it.  (You could get most of it by simply dropping the field and using a standard issue link)

2) ScriptRunner could do that, if you implemented the field.  If you do with with an issue link, then this requirement has already been met

3)  This does not make sense.  Field1 is effectively a link to another issue.  There's no need for the second field to do any work looking for stuff, it already has a value.  So your code is just "if field 1 filled, show field 1, if not, then show current issue key"

Thanks Nic. I will be trying something similar to what you recommended. 


Log in or Sign up to comment
Community showcase
Published Thursday in Jira

Updates to give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

398 views 1 13
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