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
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.
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.