Scripted field from scripted field

I want to extract the current week of the year via scripted field:
"(new Date()).getTime()" - then format as data with WW

Now i want to use the newly created field as input for another scripted field.
Looks like this is not allowed.

I have tried with more minimalistic scripted fields, such as: "5" :slight_smile:
No way. Any clue?

1 Like

As far as I know referencing another scripted field inside a scripted field will most likely fail due to the face there is no priority in computing the scripted fields so you don't always have the field present when trying to compute the other one.
I would consider moving both calculations inside one single scripted field and do it from there.
You can get some examples and best practices over here (even examples on using Java native types):

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.