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?
Use plugin like https://marketplace.atlassian.com/plugins/com.innovalog.jmcf.jira-misc-custom-fields
as of now this option not available in jira, check this
https://jira.atlassian.com/browse/JRA-26709
check this for @Nic has give woraround
https://answers.atlassian.com/questions/1554/can-custom-date-fields-be-defaulted-to-a-value-relative-from-today
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?
It looks like you're new here. Sign in or register to get started.