Adds rules field to automatic task