It's all about the answers!

Ask a question

script based validator to check "due date" in work item to be 15th of current month & year


Gowra chandra varma (11136) | asked Jul 13 '12, 6:18 a.m.
edited Jul 16 '12, 4:54 p.m. by David Olsen (5237)
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

Comments
Millard Ellingsworth commented Jul 16 '12, 4:22 p.m.
FORUM ADMINISTRATOR / JAZZ DEVELOPER

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.

One answer



permanent link
Ralph Schoon (55.5k23642) | 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

Your answer


Register or to post your answer.