How to trigger an action on board [X] based on an event taking place on board [Y]

Hello,
I am developing an app to provide a cross-board/space automation.
I’d like an item to get moved to a group on board based on an event that took place on board [Y].
I tried achieve this using GraphQL function move_item_to_group(groupId: String!, itemId: ID!) but did not work. I guess because this function does not take in a third argument such as boardId.
So, what could be a way/s to achieve desired outcome?

Thanks

Hello there @sandro,

Would the item that you want to move go from board Y to board X?

Or do you want to move an item in board X to a different board in the same board X when something happens in board Y?