Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Due Date validation

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

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

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!

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

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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you