Due Date validation

Nadine Khodabaccus October 18, 2018

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!

2 answers

2 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2018

Hello,

You would need an add-on for it. 
For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

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

Nadine Khodabaccus October 19, 2018

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!

0 votes
Lachlan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2019

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

Claudio Casiello January 29, 2020

Hi I ma using Proforma but i cannot undesratn date Validation.

I need to set validation date >Today

How can i do it?

Suggest an answer

Log in or Sign up to answer