Forums

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

Calculated date field according to ticket creation date

Tal Kdoshim December 9, 2019

Hi all,

I'd like to create a calculated field to show SLA date.

It should be calculated as following: ticket creation date + 10 days.

Is it possible to base on ticket creation date?

I tried this:

<!-- @@Formula:(issue.created == null ? null : issue.created.plusDays(10)) -->

but the field isn't even visible in the screen.

 

Thanks in advance

1 answer

1 accepted

0 votes
Answer accepted
Pete Singleton
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 9, 2019

You should be able to use 

<!-- @@Formula:

issue.get("created") + 10

-->
Tal Kdoshim December 17, 2019

Thanks Pete, I tried creating both calculated number and date fields, inserting the formula above but field is still not visible in issues edit screen.

(although these custom fields are configured to be shown in this screen) - any idea why?

Tal Kdoshim December 17, 2019

to be exact, this works:

<!-- @@Formula:

issue.get("created");

-->

the problem is with adding the 10 days.

Pete Singleton
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 18, 2019

I'm not sure - can you check the log files for errors?  Just putting +10 on the end worked for me.

Tal Kdoshim December 18, 2019

thanks, it might be a permission issue

Suggest an answer

Log in or Sign up to answer