Forums

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

Formula is failing in Automation

Swetha R
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2024

Hi Team 

 

I am getting errors while executing the rule with formula : {{(issue.customfield_101.date.diff(issue.customfield_103.date)).days}} .

Here I am trying to extract the days from the start to end . Please help 

1 answer

0 votes
Trudy Claspill
Community Champion
May 15, 2024

Hello @Swetha R 

What are the field types for customfield_101 and customfield 103?

What error message are you getting in your rule execution audit log?

A useful debugging tool is the Log action. With the Log action you can write text and values into the rule execution Audit log to confirm that the values are what you expect. I advise you to add Log actions to write the following into your audit log:

{{issue.customfield_101}}

{{issue.customfield_101.date}}

{{issue.customfield_103}}

{{issue.customfield_103.date}}

If your two custom fields are date or date/time fields, you would not need the .date function to get the difference in days between the two dates.

Suggest an answer

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

Atlassian Community Events