Forums

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

What would be the smart value to set a Due Date 14 days or 2 weeks prior to a custom date field?

Has M. March 10, 2023

I am trying to set up the Due Date via automation to 2 weeks or 14 days prior to another custom date field. I google and found: {{triggerissue.customfield_10072.minus(14)}} but that didn't work.


The value for the custom date field is from another ticket which is linked to the ticket that I am trying to update.

 

So basically. I am trying to set the Due Date as CustomDateField - 14.

 

Can there be a smart value for the jira automation for this?

1 answer

0 votes
Bill Sheboy
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.
March 10, 2023

Hi @Has M. 

You appear to be missing the units of measure, such as days, in your expression.  Please try this:

{{triggerIssue.customfield_10072.minusDays(14)}}

If that does not work, please describe the type of your custom field.  Is it date, date/time, text, etc.

Kind regards,
Bill

Has M. March 10, 2023

Thanks for your response, Bill. I tried above and it didn't work.

the custom field type is a date field

Bill Sheboy
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.
March 10, 2023

Would you please post images of your entire rule and of the audit log details showing the rule execution?  Those may provide some context for what is happening.

Has M. March 12, 2023

@Bill Sheboy  - thank you for your response and your time. I went a different route.

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events