You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And the following JMESPath expression: contains(custom:groups[*], 'foo') && 'Admin' || 'Editor'
Expected expression to evaluate to "Admin".
Also tried the following expressions without success: contains("custom:groups[*]", 'foo') && 'Admin' || 'Editor' contains('"custom:groups[*]"', 'foo') && 'Admin' || 'Editor'
Doesn't work at https://jmespath.org/ either, but maybe this use case is not supported?
Given following JSON:
And the following JMESPath expression:
contains(custom:groups[*], 'foo') && 'Admin' || 'Editor'
Expected expression to evaluate to "Admin".
Also tried the following expressions without success:
contains("custom:groups[*]", 'foo') && 'Admin' || 'Editor'
contains('"custom:groups[*]"', 'foo') && 'Admin' || 'Editor'
Doesn't work at https://jmespath.org/ either, but maybe this use case is not supported?
Ref: grafana/grafana#22986
The text was updated successfully, but these errors were encountered: