Resolution Time JIRA Misc Custom Field

Kris Monier November 24, 2015

Trying to do something simple but having no luck.

I want to create a field to calculate the difference in time between the Resolution Date and Creation Date...basically Resolution Date / Time - Creation Date / Time.

I set up a Calculated Date / Time Field and put the following query in the Description:

<!-- @@Formula: (issue.get("resolutiondate") != null ? issue.get("resolutiondate") : 0) - (issue.get("created") != null ? issue.get("created") : 0) -->

I then added the field to the 'View' screen for the issue type I'm adding it to. When I do a 'Where is my field?' query, the output says I should be able to see it...leading me to believe it's returning 'null' and thus not displaying on the issue type.

Any tips?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Steven F Behnke
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.
November 24, 2015

The add-on logs to your JIRA Application Logs (default at /var/atlassian/application-data/jira/log/atlassian-jira.log). Please check that location for any errors. You should be able to prompt the errors by refreshing an issue, or refreshing the View action of an issue. 

TAGS
AUG Leaders

Atlassian Community Events