Making attachment tab required before a state
Accepted answer
The only feasible approaches would be a Java based condition (see https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ ) or an advisor/precondition e.g. similar to https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ . The advisor could block a save. I am unsure how the rules should be for attachments as you can have many.
https://rsjazz.wordpress.com/2012/09/21/downloading-attachments-from-work-items/ and https://rsjazz.wordpress.com/2012/08/01/uploading-attachments-to-work-items/ explain the basic attachment API. Attachment is NOT an attribute.
All the links contain suggestions for further reading.
Comments
Thank you . The thing is that am not good in programming. In my project i have a scenario like this. I thought to get the script itself
It is a dangerous myth Script languages are easier to use. We have spent considerable amounts of time in this forum, trying to help unskilled users with their attempts.
https://jazz.net/wiki/bin/view/Main/AttributeCustomization explains what data you can actually access in JavaScript and attachments are not a part of it as far as I can tell.