Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How do you visibly update fields in a post function in a workflow before 'submitting the form'?

Greg Poulos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 29, 2014

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

2 answers

0 votes
Greg Poulos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 29, 2014

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

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 29, 2014

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events