Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Making attachment tab required before a state

 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

1

0 votes


Accepted answer

Permanent link

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

0 votes

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.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,117

Question asked: Jun 20 '18, 12:52 a.m.

Question was seen: 1,918 times

Last updated: Jun 20 '18, 2:49 a.m.

Confirmation Cancel Confirm