Unfortunately, the API doesn't work that way. You can only be working with a single partition at a time and the Common partition is treated like any other generated partition. One thing you could do though, is to make use of the Archive option to backup the iRule locally. Then switch between partitions and drag and drop from the local archive folder onto each individual partition.
Another options would be to create an iControl script to merge them all from the common partition. Give me the specs for what you want done and I can post one to the CodeShare section in a relatively short amount of time.
-Joe