I have two node types that are related by a node reference. Essentially, content type A is a container, and content type B is an item. For illustration sake, I'll call content A Box and content B Item. the Item has a number of taxonomy terms that are shared with Box. Again for illustration sake lets call them color and size. What I'm trying to do is set up a rule that does the following:
- On Creation of an Item ( actually before the content is save) check to see if there is a Box that shares both the color and the size of the item.
- If one exists, assign the new item to that box (via node reference).
- If one does not exist create the box, then assign the new item to that box.
I'm new to the Rules module, and although it seems really powerful, I'm just not sure that this particular use case is possible. The part that I'm most unsure about is how to check if the box with certain terms exists.