This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

Can rule criteria have references to items in a JSON array?

For example, within a rule, I have a criteria that looks like this:

criteria:
  trigger.body.refChanges[0].type:
    type: "nequals"
    pattern: "DELETE"

What bothers me is that the criteria references the first element of a JSON array.

Is this a “legal” rule criteria?

I just tested this using st2-rule-tester. The above syntax works.