1,新建下拉字段 比如:发布申请方
/*import org.apache.log4j.Logger def department = getFieldById("customfield_10353").getValue() getFieldById("customfield_10312").convertToMultiSelect([ ajaxOptions: [ url : getBaseUrl() + "/rest/scriptrunner/latest/custom/rp_app?department=" + department, query: true, // keep going back to the sever for each keystroke minQueryLength: 3, keyInputPeriod: 1500, formatResponse: "general", ] ])*/ import org.apache.log4j.Logger def log = Logger.getLogger(getClass()) //def department = getFieldById("customfield_10353").getFormValue() //.getValue() def department =getFieldById(getFieldChanged()).value log.info("select:"+department); def jobs = getFieldById("customfield_10312") jobs.convertToMultiSelect([ ajaxOptions: [ url : getBaseUrl() + "/rest/scriptrunner/latest/custom/rp_app?department=" + department, query: true, // keep going back to the sever for each keystroke minQueryLength: 3, keyInputPeriod: 1500, formatResponse: "general", ] ]) jobs.readOnly = false if(underlyingIssue && underlyingIssue.status.name !="产品审批+确认上线时间") { jobs.convertToShortText() jobs.readOnly = true }