Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for diff between due date and target end date

Anuradha Yadav September 5, 2024

Hi,

I am doing a automation which says as below:

If a target end date is greater than due date at the epic+ level, report slippage (adding label)

Tried all below values:

""{{now.plusDays(issue.duedate.diff(issue.customfield_11629).businessDays)}}""

""""

{{issue.”"Due Date".diff(issue.customField_11629).days.abs}} >= 30

 

but it says error if condition not matching. please see the snips added.

slippage 3.PNGslippage 2.PNGslippagee.PNG

Regards,

Anu

1 answer

0 votes
Duc Thang TRAN
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2024

Hello @Anuradha Yadav 

this function {{now.plusDays(issue.duedate.diff(issue.customfield_11629).businessDays)}} will return a number field, not a true/false value.

If you want using condition true / false , you can use isAfter or is Before  for ex: {{now.isAfter(issue.created)}}

I suggest that you can compare one smart value to another smart value date, or compare one smart value to a field value, ex: 

{{issue.Due Date.diff(issue.customField_11629).days.abs}} greater than 29

 

 

Anuradha Yadav September 5, 2024

Hi @Duc Thang TRAN , 
as said I just want to - 

If a target end date is greater than due date i want to  report slippage (adding label)

So If diff between 2 given dates is more then or equal to 30days I want to add label. Could you please help how to do it?

Anuradha Yadav September 9, 2024

Hi @Duc Thang TRAN  could you please check and help this is bit urgent for our team

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events