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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

28 views 3 4
Join discussion

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