It's all about the answers!

Ask a question

Making attachment tab required before a state


0
1
sreenath v (6815) | asked Jun 20 '18, 12:52 a.m.

 Hi,


can anyone help me to write a extension for making attachment required before a state in RTC.If any one used any script please  help.


Thanks & Regards,
Sreenath V

Accepted answer


permanent link
Ralph Schoon (60.7k33643) | answered Jun 20 '18, 2:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

sreenath v selected this answer as the correct answer

Comments
sreenath v commented Jun 20 '18, 2:43 a.m.

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


Ralph Schoon commented Jun 20 '18, 2:48 a.m. | edited Jun 20 '18, 2:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

Your answer


Register or to post your answer.