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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked 2 hours ago in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

23 views 1 3
View question

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