We have configured a transition Namely "Detail Analysis Completed". In this Transition there is 2 fields -
1) Global in nature? [ Field Value = 11425 ]
2) Target Project Name(s) [ Field value = 11426 ]
In "Global in nature?" field there is 2 values -
1) Y [ valueid = 11588 ]
2) N [ Value ID = 11589 ]
Now we Need to set "Target Project Name(s)" field as mandatory when "Global in nature?" field value is "Y". Please note both "Global in nature?" and "Target Project Name(s)" are in same transition screen. Do we need to set any post function/condition/validator for that? If yes, then could you please provide us steps ?
Previously we have succuessfully impleamented "Show a particular customfield based on another customfield value" by configuring customised plugin using js script. Please find the js script below for previous case -
jQuery(document).ready(function($) {
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
callChangeFunction();
});
callChangeFunction();
function callChangeFunction(){
showHidField();
// dropdown custom field change function
$("#customfield_10020").change(function() {
showHidField();
});
}
function showHidField(){
//drop down field selected value
var dropDownFieldval =
$.trim($("#customfield_10020 :selected").text());
//test field1
$("#customfield_10221").closest('div.field-group').hide();
if(dropDownFieldval == 'New Machine Required'){
$("#customfield_10221").closest('div.field-group').show();
}
}
});
Can we using same procedure for "set a customfield required based on another customfield value" ? If so then could you please provide us the steps?