custom field "date time" default value = current time + 45m ?

TIm Khasan August 21, 2013

Hi.

I've created a custom field "date&time" and I need to give it default value like "current time+45m".

Is there any way to do that?

3 answers

1 accepted

1 vote
Answer accepted
Raju KC
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 21, 2013
1 vote
RambanamP
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 21, 2013
0 votes
TIm Khasan August 25, 2013

I've tryed this:

<!-- @@Formula:

import java.util.Calendar;

import java.util.Date;

Calendar cal = Calendar.getInstance();

cal.setTime(date);

cal.add(Calendar.MINUTE, 45);

date = cal.getTime();

return date;

-->

But it doesn't work. All view options enabled, but customfield doesn't appear.

Is there obvious mistakes?

Suggest an answer

Log in or Sign up to answer