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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.