Skip to main content

We are creating modular playbooks and all of them start with 2 or 3 of the same tasks. We would like to create one CTA with these tasks (assess situation) and then decide which CTA we should fire based on that assessment. Not all possible CTA/Playbooks will be fired, only the ones associated with a close task.

 

For example: one task could be called “Perform workspace audit” and when closed, we fire that specific CTA/Playbook. Another task could be called “Implement Access Policies”. we have about 5 scenarios, which would mean we would have 5 different tasks that could be closed and 5 different CTAs/Playbook would fire.

Is that possible and how?

 

Or maybe someone has a different way of implementing such a use case...

 

Thanks!
Lyne

 

Hi @lyne_therien. It is possible to do using bionic rules. You may need a couple rules to get all the logic working and to also make it easier to maintain down the road.

What I would recommend is building a first rule that fires the first CTA with the assessment tasks. In your next rule, you query closed tasks that include the specific names (ex: Perform workspace audit). This rule will look for each time there is a closed task with that name and then fire the associated playbooks. 

If you have multiple logic, you can build a single rule and use the filters on the actions. So for example, if you have a series of logic like: 

  • If Task A is closed, assign Playbook A
  • If Task B is closed, assign Playbook B
  • If Task C is closed, assign Playbook C

Then, you can create a query for all closed tasks. In the Actions pane, you will need to create an action for each Playbook you want to fire. So for example, the first action could filter for Task Name = Task A, and then fire the associated playbook. This will allow you to build it all in one rule and might be easier to see all the logic in one place. 


Thanks Jean. I’ll probably have to query cstask to find which task is closed, right?


@lyne_therien - that’s correct. Just query the CSTask object. You should find all your tasks there. 


Thanks Jean. I’ll probably have to query cstask to find which task is closed, right?

 @lyne_therien did you get a chance to query the cstask object? Is your query solved? Please let us know if you need any help here. 


Hi @lyne_therien. It is possible to do using bionic rules. You may need a couple rules to get all the logic working and to also make it easier to maintain down the road.

What I would recommend is building a first rule that fires the first CTA with the assessment tasks. In your next rule, you query closed tasks that include the specific names (ex: Perform workspace audit). This rule will look for each time there is a closed task with that name and then fire the associated playbooks. 

If you have multiple logic, you can build a single rule and use the filters on the actions. So for example, if you have a series of logic like: 

  • If Task A is closed, assign Playbook A
  • If Task B is closed, assign Playbook B
  • If Task C is closed, assign Playbook C

Then, you can create a query for all closed tasks. In the Actions pane, you will need to create an action for each Playbook you want to fire. So for example, the first action could filter for Task Name = Task A, and then fire the associated playbook. This will allow you to build it all in one rule and might be easier to see all the logic in one place. 

@jean.nairon Thanks for the reply!


You’re welcome @sai_ram!


Thanks all. other projects took priority over this but I’ll follow your suggestions above when the time comes. Lyne.


Reply