Forums

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

How to create issue field in cloud connect

XYZ Company
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2019
Hey guys,

I need help coding an issue field where I'd be able to return the difference between the date an issue is closed and its original due date. I know there's documentation about creating issue fields, but not exactly sure where to start. Would I just edit code in the descriptor file?

Any tips would be appreciated

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2019

Hello,

Welcome to Atlassian Community!

Unfortunately, JIRA does not have a feature that would calculate the difference between two date fields, however, there are some options that you can use to achieve that matter:

1 - You can export both resolved date and Due date to CSV (Excel) and calculate it.

2 - You can use the Add-on Scriptrunner to create a new custom field that would calculate the value, however, it requires some knowledge in groovy Scripting. For more information about it, you can check the documentation below:

Creating an advanced Script Field

3 - The Add-on JIRA misc Custom fields can also provide you with a calculated field. Check the answer below for more details about it:

calculate the date and time with two custom field

Let me know if this information helps.

Suggest an answer

Log in or Sign up to answer