I would like to set a condition for the filed Original Estimate to check, if the value of the field is less than 4h.
Example:
The field Original Estimate will have to be less than value '4h'. Compared as String.
Question:
Which "Comparison Type" do I need to use?
Also how do I have to set the value?
I've tried multiple condition combination, without success.
Hello @Max Benek
Thank you for reaching out.
Indeed, Jira does not have a comparison type to calculate the number of days or hours added to a field. We have a feature request to allow that kind of comparison in workflow conditions:
As an admin, I'd like to set a date comparison condition in the workflow as a JQL search
Feel free to vote and watch the suggestion to increase its priority and also receive notifications about any updates.
A possible workaround would be to use the Automation for Jira to send a message and keep the issue in the same status if the original estimate is not less than 4 hours, preventing the issue to proceed in the workflow. These would be the steps:
Let us know if you have any questions.
Is this the only way for me to get what I need from this request?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Original Estimate field is stored as a number of seconds. Therefore in your case 4h = 4x60x60 = 14400
If you only need a condition, then you can use Value Field condition configured as:
Value: 14400
Comparison Type: Number
If you require a validator, consider using a Jira expression-based validator. There are several options available on the marketplace.
We've developed the Jira Expression Validator as part of the free Workflow Building Blocks for Jira app. Feel free to give it a try! The Jira expression for your case will be:
issue.originalEstimate < 14400
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.