Is it possible to add a conditional custom field in create issue page

Hi All,

Is it possible to add a conditional custom field in create issue page?

If yes, how? I have just started customising jira code, your help is appreciated.

My requirement is to display a custom field in create issue page based on specific condition of the previous drop down custom field value.


Andrew Paul S

5 answers

0 vote
Pedro Cora Atlassian Team Oct 14, 2013


You can probably use the features of the Workflow Toolbox plugin.

Hi All,

Thanks for your reply. Can anyone help me. its urgent.

I need the source code file name corresponding to the create issue page.

Since this is the first time touching the code.. still searching to find the file name.

Your help is appreciated.


Andrew Paul S


in {...}\Atlassian\JIRA\atlassian-jira\WEB-INF\classes\actions.xml you search for CreateIssue

I donot have source code, you search for CreateIssue class file in your jira installation directory.

Thanks Bharadwaj for your quick response. I wanted to make sure this is the file, so cut the file createissue-details.jsp and placed in another location. Restarted the service, but still create issue page is shown.

I think there is someother file corresponds to it or do you have any suggestion.


Andrew Paul S

I think you need to restart jira.

But changing the default files might lead to Jira corruption. So I prefer to use external things like creating plugin, adding javascript.

Tell your exact requirement which I am able to look into.

i think you are trying to show or hide field on selection of select list if yes then use following script

<script type="text/javascript">
jQuery(document).ready(function($) {
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
function callChangeFunction(){
    // dropdown custom field change function
    $("#customfield_10625").change(function() {
function showHidField(){
    //drop down field selected value
    var dropDownFieldval =$.trim($("#customfield_10625 :selected").text());
    //test field1
    if(dropDownFieldval == 'Project'){
    }if(dropDownFieldval == 'Release'){

Hi @Rambanam Prasad

I have similar requirement, i have a radio button called Test1.

When Test1 value is yes, other custom fields ( test2, test3, test4) should show.

when Test1 values is No, other custom fields should be hidden from create screen and edit screen

Can this be done with above java script, or i should create a custom plugin and put it in .js file and .xml file?

Thanks for your help.

yes, with above script you can do that, change from change event click event at line 10 and change the way of selected value for radio button at line 18 i suggest to add it as webresource module in plugin, check the link provided in @Bharadwaj answer

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
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

130 views 0 3
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