fix the json rule generation for reviewer for the fullyQualifiedName (#24431)

This commit is contained in:
Ashish Gupta 2025-11-19 14:35:56 +05:30 committed by GitHub
parent ca724d100d
commit 4c6a358e17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -415,9 +415,9 @@ class JSONLogicSearchClassBase {
label: t('label.reviewer-plural'),
type: '!group',
mode: 'some',
defaultField: 'fullyQualifiedName',
defaultField: EntityFields.FULLY_QUALIFIED_NAME,
subfields: {
fullyQualifiedName: {
[EntityFields.FULLY_QUALIFIED_NAME]: {
label: 'Reviewers New',
type: 'select',
mainWidgetProps: this.mainWidgetProps,
@ -426,6 +426,11 @@ class JSONLogicSearchClassBase {
asyncFetch: advancedSearchClassBase.autocomplete({
searchIndex: [SearchIndex.USER, SearchIndex.TEAM],
entityField: EntityFields.DISPLAY_NAME_KEYWORD,
sourceFields: 'displayName,fullyQualifiedName',
sourceFieldOptionType: {
label: 'displayName',
value: 'fullyQualifiedName',
},
}),
useAsyncSearch: true,
},