Menu

States, what should I do?

2023-07-24
2023-07-26
  • Jose Cedeño

    Jose Cedeño - 2023-07-24

    Hi there,

    I am trying to create the triggers but when creating "entering a status" below indicated with an arrow, the status do not appear, what should I do? How can I create them, I've tried to search everywhere, but I can't find anything specific, the information is very confusing for me, I'm learning.

    Thank you so much.

     

    Last edit: Jose Cedeño 2023-07-24
    • Jose Cedeño

      Jose Cedeño - 2023-07-25

      Please, if anyone has a solution I would be grateful.

       
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2023-07-25

        Please mind that Combodo only monitors this board, and responds when they have time (unless you're a customer). Same for other people like me :)

        This is for "Customer Contract", right? That class does not have states (unless you customized it).

         
        • Jose Cedeño

          Jose Cedeño - 2023-07-25

          Thanks for answering, and I apologize for the problems it may cause, I just wanted to know how I could customize the states, I can't configure the triggers without it and finish configuring iTop.

          Thank you and a thousand apologies.

           
          • Jeffrey Bostoen

            Jeffrey Bostoen - 2023-07-25

            Can you be more specific about what exactly you want to accomplish with the trigger?

             
            • Jose Cedeño

              Jose Cedeño - 2023-07-26

              Good morning Jeffrey,

              Sure, what I was referring to is that to create a trigger that is (OnStateEnter) you necessarily need a state which is where I have pointed to in the screenshot, watching tutorials on Youtube I see that when they are creating the trigger they can select the state but I can't , nothing comes out to select, what I wanted to know is how I can solve this problem, I mean status for example: New, approved, waiting for approval, rejected, closed, pending, do you know what I mean?

              I want to make triggers for when the request is resolved, when it is rejected, more or less that.

              Thanks for answering,

               
              • Jeffrey Bostoen

                Jeffrey Bostoen - 2023-07-26

                Hi Jose. It's a trigger which can be used on classes which have a life cycle (basically the type of buttons you mention: assign, wait for approval, reject, ... / states such as new, approved, ...).

                In your screenshot, the class was - I believe - "Customer Contract". A customer contract does not have states, so indeed the list is empty as you cannot use this trigger for this class (unless you start modifying it).

                 
                • Jose Cedeño

                  Jose Cedeño - 2023-07-26

                  Yeah well, that was an example, this is what actually happens.

                   
                • Jose Cedeño

                  Jose Cedeño - 2023-07-26

                  Aaaaaah, I understand, not everyone has status, i got it.

                  It was my mistake, i selected wrong.

                  Thank you very much Jeffrey you are a genius!

                   
  • Vincent @ Combodo

    This trigger can only be used on a class with a lifecycle so states. The selected class, which I suppose to be an "iTop user" has no lifecycle, so no states are available. There is no solution for this particular class to add a lifecycle but you can use a TroggerOnObjectUpdate on field status and get about the same result.

     
    • Jose Cedeño

      Jose Cedeño - 2023-07-26

      I understand, not all of them have a status, I understood, it was my mistake, I selected wrong.

      Thank you so much!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.