Trying to calculate number of dates from custom field 'date received' till the resolution date.
I tried to do it myself with this code below but it didnt work any help would be greatly appreciated.
<!-- @@Formula: (issue.resolutionDate != null) != null ? issue.resolutionDate.getDate() : null) - (issue.get("customfield_10002") != null ? issue.get("customfield_10002") : null) -->
The Resolution Date is retrieved using:
issue.get("resolutiondate")
See https://innovalog.atlassian.net/wiki/x/BYAbAg
So your formula would look like (assuming you want a number of days):
<!-- @@Formula: if (issue.get("resolutiondate") == null || issue.get("customfield_10002")==null) return null; return (issue.get("resolutiondate").getTime() - issue.get("customfield_10002").getTime()) / (1000*60*60*24); -->
excellent! i am still trying to learn this language, it is a lot different to BASIC which is what i've come from.
I do have one question, is there anyway to exclude weekends? if it is too complicated then do not worry as we can simply change the date received to manipulate the total days.
Thank you for your help greatly appreciated!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This question was answered before here on Answers. You should search within this site.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.