Help with creating an incident from a workflow rather than several incidents.

Question

Hi

I am trying to create a workflow to search for any servers that are currently with a certain name. If it finds any , then raise an incident..

Now I have the search and the incident rasing bit done, the problem I have is it raises an incident for EVERY server. Can I get it to raise only one incident ? I dont need it to list anything found, just basically a "servers found in violation, deal with it" kind of thing!

These things tend to happen in batches so i dont really want 10s of incidents raised.

Thanks in advance

Posted Jul 9, 2025, 11:01 AM UTC

03
paablo•

Raise one incident with all servers in affected cis. So create one incident and N task_ci records for each server found, setting task to the incident.

Side question: is this a real requirement or just a hypothetical. Not sure how a ci existing would constitute an incident

4
supercbukOP•

thanks, sorry should be clearer.. Essentially i want the report to run, if there are 1 or 100 results I just want 1 inc created and not 100. I dont even need the CI listed in the incident at all. The text of the inc is to check a report and fix.

Its a real requirement based on naming convention rather than if a CI exists

1
shkn_bake•

After the Look up Records action, instead of a for each loop use an If condition: count > 0

2