Forums

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

what is the syntax for {{now.diff(issue.customfield_10230).days}

Emilia KASPRZYK
Contributor
December 5, 2023

Hello,

i have two fields calculated:

  1. {{now.diff(issue.duedate).days}} - this one works perfectly
  2. {{now.diff(issue.customfield_10230).days}} - doesn't work. How do I improve this to make it work? The name of the field is "Delay to Base Schedule", Perhaps I should use a name instead of a number? If so, what is the syntax for a name consisting of multiple words?

Help me please :).

Kind regards

 

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.
December 5, 2023

Hi @Emilia KASPRZYK 

Have you confirmed it has a value for the issue, with the audit log?

What is the type of your custom field, customfield_10230?  Please note, some fields which Jira indicates are date (or date/time) fields are actually text when they reach an automation rule.  For those cases, toDate must be added for a conversion, like this:

{{now.diff(issue.some field.toDate).days}}

 

Kind regards,
Bill

Emilia KASPRZYK
Contributor
December 5, 2023

hi

 

this is Date filed.

What to put exactly to "some filed" ? {{now.diff(issue.some field).days}}
if my custom field is: CustomFieldId=10230 or Delay to Base Schedule

Suggest an answer

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

Atlassian Community Events