Is it possible to do without having to create a custom control?
I need to allow the change of state of a custom work item only if it has at least one file attached. System.AttachedFileCount field of Attachments Control doesn't support "REQUIRED": I would like to use it as a condition for a transition.
I am trying to figure it out by adding one custom Field used only to copy in the value present in System.AttachedCount.
I set the rule "COPY" in the custom field in order to copy in the number of attachments of the work item. Then I can check the value of the custom field in the transition or state using the rule "PROHIBITEDVALUES" = 0.
This could be a workaround, but the problem is that it cannot work inside the same state: If I edit the work item without changing the state and add some attachments, the value of the custom field does not change.
Are there is some other rules to try?