I would like to add the below validations to the due date:
1) Due date cannot be in the past
2) Due date for a specific issue type cannot be less than 4 days.
Would be super helpful if someone could help me on this.
Thanks!
Hello,
You would need an add-on for it.
For example, you could use the Power Scripts add-on:
You could write a validator like this:
if (dueDate < currentDate() ) {
return false, "Date must greater or equal to the current date";
}
date curDatePlus4Days = currentDate() + "4d";
if (issueType == "your issue type name" && dueDate < curDatePlus4Days) {
return false, "Date must greater or equal to the current date + 4d";
}
return true;
You can find more info about validators here:
https://confluence.cprime.io/display/JJUPIN/Customizing+workflows
Hello,
Thanks for your quick reply. It is very helpful.
I see that I will need to buy the add-on.
So, no quick solution... :(
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Comparing dates can be tricky, especially when working with teams from different time zones. Therefore we developed Dates Compare Validator, which is part of the Workflow Building Blocks for Jira free app.
Below is an example of how it would be configured for: Due date that cannot be in the past.
In order to enforce the Due date to be at least 4 days from now, you can fill in the offset = 4d
I hope it will help.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Nadine,
Another option to achieve this is using the add on ProForma. which allows you to build forms using an easy editor and apply many powerful validation options for date fields.
If you would like to evaluate ProForma for free, you can install ProForma Lite
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi I ma using Proforma but i cannot undesratn date Validation.
I need to set validation date >Today
How can i do it?
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.