Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt
hiddentrue

To retrieve the value of a date custom field simply create a date variable and set the value to the custom field.

To retrieve the value of a date custom field simply create a date variable and set the value to the custom field.

To set the value of a date custom field simply set the custom field to equal a date
string or a date variable variable.

This script assumes that it is running in the context of an issue. Like in a
workflow script or listener for example. If you would like to test this script
from the SIL Manager, add an issue key to test with under the Run Configuration
setting (Run > Run Configuration > Context).

Code Block
//------GETTING FIELD VALUE-------
date myDate = customfield_12345; //<-- update this customfield id
runnerLog(myDate); //displays results in the editor console panel

...

Getting Values

Insert excerpt
Date Fields - Getting Values
Date Fields - Getting Values
nopaneltrue

Setting Values

Insert excerpt
Date Fields - Setting Values
Date Fields - Setting Values
nopaneltrue

Supported Field Types

  • Date Picker

  • Date Time Picker