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

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!


2 answers

0 votes

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.

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!


Suggest an answer

Log in or Sign up to answer
Community showcase

Scrum Roles Explained: the Do's and the Don'ts

Hello Community,  Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...

154 views 2 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you