oneuptime icon indicating copy to clipboard operation
oneuptime copied to clipboard

Increase functionality of If/Else component in workflows

Open luisxkimo opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. This component its very limited to implement a bit more complex operations to compare, for example "contains/not contains" or add more than 2 input values and AND/OR operators between them.

Describe the solution you'd like There are some options that we could have here, one of them could be:

  1. Let add input files as the user wants (maybe with a high limit to avoid performance issues)
  2. Add functions like AND/OR between conditions
  3. Add more operations like "contains", "no contains", "is empty",
  4. NICE TO HAVE: have at least 2 levels of "nesting" in if/else conditions

luisxkimo avatar Aug 07 '24 09:08 luisxkimo

That would be something I to would be interested in.

Kuldran avatar Aug 07 '24 14:08 Kuldran

We have added Starts With, Ends With, Contains, Does not Contain.

For recursive conditions, its much easier to use JavaScript component and write a script there.

Please let me know if this helps!

simlarsen avatar Aug 19 '24 16:08 simlarsen

Please check: https://github.com/OneUptime/oneuptime/pull/1648

simlarsen avatar Aug 19 '24 16:08 simlarsen