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

How to set default value of property with date type.

VEINHORN February 26, 2015

Hello, is it possible to set up default value of property with date type?

For example i have.

<property>
<key>startPeriod</key>
<name>Start Period</name>
<description>Start Period</description>
<type>date</type>
<default class=""></default>
</property>

Is it possible to set up specific class for generating time for default value?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Edgar Hernandez Meraz September 21, 2016

Hello Veinhorn,

Yes it is possible to set a hardcoded default value for a date type, just like this:

<default>10/12/2016</default>

What I haven't found yet, is how to set the value dynamically using a class or something like that. I am also interested on setting up the value dynamically. I tried using a class like this:

<default class="com.atlassian.plugins.tutorial.jira.reportsutils.DateValuesGenerator"/>
But it did not work.

Hope there is a way to set the value, because that is a basic feature.

Regards,

Edgar

TAGS
AUG Leaders

Atlassian Community Events