How do you make RTC's work item automatically validate its data entry?
Accepted answer
RTC has several "built-in" which can be added as Preconditions using Operational Behaviors (Under Team Configuration). These include marking something as required. Make sure you also include "Attribute Validation" or it will only show errors and not block saving.
Next, look under Project Configuration -> Work Items -> Attribute Customization. There is an option for Validators and there are a set of built-in providers: Decimal Range, Number Range, Regular Expression, and Script-based. For the APAR #, you could use Regular Expression and validiate it that way. Script-based allows you to write a javascript which can use a set of javascript APIs to look at the values of the attributes and specify and error if the script determines a problem.
After that, you can go down to a Server-Side plugin which can do validation, which are written in Java and would be used if you the validation is more complex than what can be done in the first 2.
Susan
Comments
Hi Susan, thank you for your response.
I've included the "Attribute Validation". But I'm not seeing Attribute Customization under my Work Items. Do you know how I can view Attribute Customization, or is that something I need to add on? And would I need to request access from my DevIT group?
Are you using web client or an eclipse client? The eclipse client should have it under Work Items. I don't see it there in the web client nor do I know exactly where it is in the web client. Perhaps someone else who is more familiar with project admin in the web client can give you a pointer.
I don't think the admin of Validations is implemented on the web UI yet.
Thank you - I finally configured the automatic validators into RTC, using eclipse and web client. But I'm receiving a error message that states the error twice. Is there any way to make the error message not repeated?