Hi All,
Please give me an advice to solve my iquiry below. I have the destination field namely: Date Marks
The Date Marks will be automatically filled by JMWE post function with this matrix:
Thank you :)
You can use a Set Issue Fields post function, and use this expression value:
{% if (issue.fields["Date A"] | date("diff", issue.fields["Date B"])) < 0 or (now | date("diff", issue.fields["Date B"])) >= 0 %}
On time
{% elif (now | date("diff", issue.fields["Date B"])) < 0 and now | date("startOf", "month") == issue.fields["Date B"] | date("startOf", "month") %}
Needs attention
{% else %}
Late
{% endif %}
Thank you @David Fischer , it helps a lot.
I need to revise my logic, and the updated as followed:
Thank you in advance David!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this:
{% if issue.fields["Date A"] and (issue.fields["Date A"] | date("diff", issue.fields["Date B"])) <= 0 or not issue.fields["Date A"] and (now | date("diff", issue.fields["Date B"])) <= 0 %}
On time
{% elif not issue.fields["Date A"] and (now | date("diff", issue.fields["Date B"])) > 0 and now | date("startOf", "month") == issue.fields["Date B"] | date("startOf", "month") %}
Needs attention
{% else %}
Late
{% endif %}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.