Hello,
I want a workflow to only run when the field remaining estimate is not empty.
When starting the transition, the following screen shows:
By default, the "Remaining Estimate" is empty.
My validator looks like this:
issue.getEstimate() != ''
I have also tried
issue.getEstimate() != null
Both codes don't work. After confirming, the transition just runs and the status is changed.
I just ran a test to see if the getEstimate works and the validator
issue.getEstimate() == 3600
returns the following after confirming:
The error message was defined by me, so no worries there.
Obviously the validator works now.
I noticed that I left the remaining estimate empty, then clicked, and suddenly the remaining estimate is automatically filled with the original estimate and the error message shows.
So, TLDR:
How do I set up a validator to block remaining estimate from being empty?
Hi Christian,
Which validator and add-on are you using to do this? The Remaining estimate is picking the value from the Original estimate because the "Legacy Mode" is on in your Time Tracking settings. With this on, the original estimate and remaining estimate are linked. You can uncheck it to avoid it.
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am using the
Legacy mode is already disabled.
To give a little bit more context:
At the end of each month project responsibles have to give an estimate about how much work is left for that project to the project management, to identify possible budget overruns early.
Because we want them to think about the real remaining estimate (including every non-planned activities) instead of just saying "last month we had 100h left, we worked 35h this month on that project, so remaining has to be 65h", I set it up in a way that the remaining estimate gets cleared when doing the transition.
I now want to avoid that an empty estimate is given by accident, so I need the validator.
edit:
I also tried using the following validator:
Fields Required (JSU)
This results in the following screen:
Remaining estimate now looks like a mandatory field, I am still able to simply confirm the transition and it will run just fine and fill in the original as the remaining automatically...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.