Hi, I need to have a calculated field that will:
Take the date from Field A and minus the value from Field B
Write the outcome date to Field C
is it possible?
Hi @Javanshir Mustafayev _ HIT ,
what is field B supposed to represent? A number of days, hours, seconds, ...?
Also, where are you trying to use that calculation? A Set Issue Fields post-function?
Hi @David Fischer Field B is a number field, that represents days. And is to be used to minus it's value from Field A which is a date picker field
Then the Nunjucks expression you're looking for is:
{{issue.fields["A"] | date('subtract', issue.fields["B"] , "days") | date }}
@David Fischer thanks for your help, the script above works, but could you please help me trim the value
from:
2031-07-28T00:00:00+00:00
to:
2031-07-28
?
It looks like you're new here. Sign in or register to get started.