It might be, but it's the wrong place to do it and it might not work because of that.
A validator is there to prevent invalid entry to an issue. It returns true or false back to Jira BEFORE anything is written to the issue, and Jira then either feeds back to the user, or updates the issue. This means that if your validator allows the user to proceed, data will be updated, but if they fail to enter valid data, they will be sent back. In that case, your code would need to force data through on to the issue, re-index and so on.
For creation, of course, your issue won't exist in the situation where you fail validation, so you'll get no data added anyway.
In other words, do it in a post function.
--
Post by broughn2 - online at:
http://forums.atlassian.com/thread.jspa?forumID=46&threadID=38512_______________________________________________
Jira-user mailing list
Jira-user@...
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-user