Automation : New advanced condition

Automation : New advanced condition

How do I configure the “New Advanced Condition” operation in an automation ?

When configuring an automation, once you have selected the trigger, it is important to associate it with an operation containing the actions or conditions to be executed. In this article, we will show you how to configure the “New advanced condition” operation. To do this, please follow these steps :

Info
Please refer to this article: The different types of triggers
  1. After selecting the trigger to which your action will be associated, click on the “Add an operation” button. 



  1. You will then be taken to the list of operations. Click on “New advanced condition.”

Info
Please refer to this article: Different types of operations



You will now configure the new advanced condition :
  1. Click on the “If” button to set the condition.

  1. In our case, as an example, we will choose the condition relating to the “tags” field.



  1. Set the Tag condition to “Accepted.”



  1. After configuring the condition using the “If” button, you will need to assign an action or condition to it by clicking on the “Add operation” button located just below.



  1. You are redirected to the interface, where you can perform a new operation by selecting a condition or action. 



  1. In our case, as an example, we will select the action “Send an email” by clicking on the “New action” button, then on “Send an email.”


  1. Configure the selected action (in our case, “Send an email”).
InfoPlease refer to these articles related to actions :
  1. Send an email : this action sends an email to the specified recipients.
  2. Make an HTTP request : this action makes an HTTP POST request to a specific URL.
  3. Send a Slack notification : This action sends a Slack notification.
  4. Add or remove a tag : This action adds or removes a tag from a repository.
  5. Add to an evaluation session : This action adds a repository to an evaluation session.



  1. Once the action associated with the “Tag Accepted” condition, via the ‘If’ button, is complete, we will now configure a new action linked to another condition, using the “Else if” button. To do this, click on “Add an else if.”



  1. Click on the “Otherwise” button to set the condition.



  1. Select the condition: in our case, and as an example, we will select the deposit field condition.



  1. Set the Status condition to “Pending validation.”



  1. After configuring the condition using the “Otherwise If” button, you will need to assign an action or condition to it by clicking on the “Add an operation” button located just below.



  1. You are redirected to the interface, where you can perform a new operation by selecting a condition or action. 



  1. In our case, as an example, we will select the action “Add to an evaluation session” by clicking on the “New action” button, then on “Add to an evaluation session.”



  1. Configure the selected action (in our case, “Add to an evaluation session”).



Alert
When multiple conditions are defined, as soon as one condition is validated, the following conditions are no longer taken into account. In other words, if the first condition, defined with “If,” is met, then the automation runs according to that condition and will not check the following conditions, such as “Else if.” However, if the “If” condition is not valid, the automation will continue with the evaluation of the next condition (“Else if”), and so on.It is therefore essential to order your conditions according to their priority, as only the first valid condition will be taken into account during execution.

  1. Once you have finished configuring the condition, all you have to do is enter the name of your automation. Then save your configuration by clicking on the “Save” button at the top right of the screen.



  1. Your automation now appears in the Automation menu.