Update issue customfield value in workflow validator.

View: New views
2 Messages — Rating Filter:   Alert me  

Update issue customfield value in workflow validator.

by forums-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Is it possible to update the customfield value in workflow validator during creation of issue?
--
Post by jtecson - 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

Re: Update issue customfield value in workflow validator.

by forums-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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