Ad Widget

Collapse

trigger dependencies

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oebele
    Junior Member
    • Jun 2010
    • 13

    #1

    trigger dependencies

    Hello,

    I wondered if it is possible to create a trigger that is dependent on other triggers, the same way items can be combined with operators in a trigger:

    so, say I have two triggers with two different conditions and a third trigger with another condition that should fire when and only when -one, or both- of the first two triggers are true.

    Is this possible, and if yes, how can I do this?

    --edit: another line of thinking: maybe it's possible to configure a custom action, so an email is only sent when one or both of the first two triggers are in problem state AND the the third is in problem state? Didn't see how to do it in the actions screen.
    Last edited by oebele; 18-01-2011, 16:28.
  • oebele
    Junior Member
    • Jun 2010
    • 13

    #2
    *bump

    anyone? Even if it's impossible to do this, I would really appreciate to hear it.

    Comment

    • JBo
      Senior Member
      • Jan 2011
      • 310

      #3
      Hi,

      You cannot directly define a trigger as being (trigger1 OR trigger2) or (trigger1 AND trigger2).

      However, if you have two triggers defined as:
      trigger1 : expression1
      trigger2 : expression2

      You can define a third one with:
      expression = expression1 | expression2
      or
      expression = expression1 & expression2

      For you second question about action conditions, you can have several conditions of the form Trigger = "some trigger". In "configuration of actions" screen, just click on New in "Action conditions" section. You can even choose to do an AND or OR between these conditions.

      Hope this helps,
      JBo
      Last edited by JBo; 24-01-2011, 14:10. Reason: typo corrected

      Comment

      • oebele
        Junior Member
        • Jun 2010
        • 13

        #4
        Thanks again for your answer!

        I know it's possible to combine expressions with operators and I guess it's impossible then to 'stack' triggers, that is, have them fire only when two other triggers are in error state or something similar.

        What's left for me to do then is to create a trigger with one big expression that contains all the conditions. I do have some problems getting the syntax right for this trigger:

        item1 & item2 & item3 & ((item4a & item4b & item4c) | item5), so for the trigger to fire, ALL first three items should be true AND item4a through c OR item5.

        I tried several ways but couldn't get it to do what I want.
        Last edited by oebele; 24-01-2011, 16:40.

        Comment

        • Inc0
          Member
          • Dec 2010
          • 36

          #5
          Originally posted by oebele
          item1 & item2 & item3 & ((item4a & item4b & item4c) | item5)

          so for the trigger to fire, ALL first three items should be true AND item4a through c OR item5.

          I tried several ways but couldn't get it to do what I want.
          It's just ANDs and one OR so:
          Expression: (item1 & item2 & item3 & item4a & item4b & item4c) | item5
          So IF (item1, item2, item3, item4a, item4b, item4c ARE 1) OR (item5 is 1) THEN the trigger pops up.
          I'm doing a similar thing but with less items: ((item1 & item2) | item3) and it's working fine.

          Comment

          • oebele
            Junior Member
            • Jun 2010
            • 13

            #6
            yes, then it would be simple, but that's not exactly what I want

            I'll try to explain it better: the expression consists of two parts, the first part being item1, item2, item3, the second item4a, item4b, item4c, item5.

            For the trigger to fire item1-3 have to true AND one of the following two conditions: item4a AND item4b AND item4c,
            OR
            item5.

            What is the correct syntax for this?

            Comment

            • Inc0
              Member
              • Dec 2010
              • 36

              #7
              Originally posted by oebele
              yes, then it would be simple, but that's not exactly what I want

              I'll try to explain it better: the expression consists of two parts, the first part being item1, item2, item3, the second item4a, item4b, item4c, item5.

              For the trigger to fire item1-3 have to true AND one of the following two conditions: item4a AND item4b AND item4c,
              OR
              item5.

              What is the correct syntax for this?
              Expression: (Item1 & Item2 & Item3)&((Item4a & Item4b & Item4c) | Item5)

              Comment

              Working...