Ability to filter devices by logically ORing rules

I’m trying to create a deployment that targets devices where EITHER of the following is true:

  • The deploymentGroup attribute does not exist
  • The deploymentGroup attribute is “InternalInventory”

Since deployments can only target one group and I’d like to avoid maintaining two different sets of deployments, I went to create a dynamic group. Unfortunately there does not seem to be a what to create a filter for this. I tried things like:

  • using the in operator with values like "", InternalInventory and , InternalInventory
  • using a regex operator with a value (|InternalInventory)$

But none worked. Since this is pretty basic stuff, it feels like I’m just missing something?

This is in Hosted Mender with an Enterprise account.

Hi Taylor,

I hope you are doing well. As far as I know, the filtering logic works only as AND arguments. And for this case, in order to know whether an attribute exists, the specific operator is required, unfortunately as there is no OR, the second comparison will be excluded as they will not be a way to have both conditions happening at the same time. Let me bring this conversation with the team and see if there is an alternative option.

Kind regards

Hi Esteban - Any update on this?