I'm using a post function in a custom workflow to automatically set the 'time remaining' to '0' when a user closes a task.
The post function works in that it does set the time to 0, but only after the user hits the 'submit' button. I'd like it to set the field in the form that comes up to 0 so the user doesn't think they have to change it to 0.
thanks in advance!
Greg
ah, ok. thanks for the answer. That's a little pesky the fields can't be updated before the screen is shown. I might end up just removing those fields from the screen so it's not confusing for the users.
thanks again for the answer!
Greg
Post-functions execute after the transition has been confirmed that the user wants to perform the transition and it has passed validation - which is after the screen has rendered and the user has entered data.
Jira doesn't have any functions to pre-set values on the fields as you go into a transition screen. The best you can do is modify the post function so that it's intelligent about what it sets in the field, or inject some hacky javascript to set the time remaining to zero as they enter the screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.