Ok, I found a way.
I added a new custom field, an integer type. No rules. In the GUI, I added just above the Attachment Control Fild associated with my new custom field. At the first transition, I set the field with the "EMPTY" rule. In the first state, I added the following rules to the field: - "COPY": a copy from the System.AttachedFileCount field - "QUANTITY": check if the System.AttachedFileCount field has changed, and as a rule I set "EMPTY" - "FORBIDDEN VALUES": set the value to "0", therefore counter = 0 is not allowed (but NULL is allowed!).
when I try to keep workItem in the first state, I throw an error indicating that 0 is a forbidden value, so I need to attach at least one file. IT WORKS !!
L.
source share