script based validator to check "due date" in work item to be 15th of current month & year
![]()
Gowra chandra varma (11●1●3●6)
| asked Jul 13 '12, 6:18 a.m.
edited Jul 16 '12, 4:54 p.m. by David Olsen (523●7)
Hi,
I have a custom work item type with attribute "Due Date", i want user to select only 15th of current month & year. If user selects date other than 15th of that particular month & year, validation fails and return Error message. Please help me with necessary script. Thanks Varma K |
One answer
![]()
Ralph Schoon (62.0k●3●36●43)
| answered Jul 14 '12, 7:14 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,
this page should get you started on writing something: https://jazz.net/wiki/bin/view/Main/AttributeCustomization |
Comments
If it can only be 15th of the current month/year, you may want to consider (using the data Ralph provided in his answer below) creating a Default Value Provider that would simply set the value as desired (so the user need not do anything). You could also add a Validator in case the user is allowed to change the value.