@@ -403,6 +403,34 @@ export enum IsFieldValues {
403
403
UNLINKED = 'unlinked' ,
404
404
}
405
405
406
+ const IsFieldDescriptions : Record < IsFieldValues , string > = {
407
+ [ IsFieldValues . RESOLVED ] : t ( 'Issues marked as fixed' ) ,
408
+ [ IsFieldValues . UNRESOLVED ] : t ( 'Issues still active and needing attention' ) ,
409
+ [ IsFieldValues . ARCHIVED ] : t ( 'Issues that have been archived' ) ,
410
+ [ IsFieldValues . ESCALATING ] : t (
411
+ 'Issues occurring significantly more often than they used to'
412
+ ) ,
413
+ [ IsFieldValues . NEW ] : t ( 'Issues that first occurred in the last 7 days' ) ,
414
+ [ IsFieldValues . ONGOING ] : t (
415
+ 'Issues created more than 7 days ago or manually been marked as reviewed'
416
+ ) ,
417
+ [ IsFieldValues . REGRESSED ] : t ( 'Issues resolved then occurred again' ) ,
418
+ [ IsFieldValues . ASSIGNED ] : t ( 'Issues assigned to a team member' ) ,
419
+ [ IsFieldValues . UNASSIGNED ] : t ( 'Issues not assigned to anyone' ) ,
420
+ [ IsFieldValues . FOR_REVIEW ] : t ( 'Issues pending review' ) ,
421
+ [ IsFieldValues . LINKED ] : t ( 'Issues linked to other issues' ) ,
422
+ [ IsFieldValues . UNLINKED ] : t ( 'Issues not linked to other issues' ) ,
423
+ } ;
424
+
425
+ export function getIsFieldDescriptionFromValue (
426
+ isFieldValue : IsFieldValues
427
+ ) : string | undefined {
428
+ if ( isFieldValue in IsFieldDescriptions ) {
429
+ return IsFieldDescriptions [ isFieldValue ] ;
430
+ }
431
+ return undefined ;
432
+ }
433
+
406
434
type AggregateColumnParameter = {
407
435
/**
408
436
* The types of columns that are valid for this parameter.
@@ -1645,6 +1673,7 @@ const ERROR_FIELD_DEFINITION: Record<ErrorFieldKey, FieldDefinition> = {
1645
1673
valueType : FieldValueType . STRING ,
1646
1674
defaultValue : 'unresolved' ,
1647
1675
allowWildcard : false ,
1676
+ values : Object . values ( IsFieldValues ) ,
1648
1677
} ,
1649
1678
[ FieldKey . ISSUE ] : {
1650
1679
desc : t ( 'The issue identification short code' ) ,
0 commit comments