Forums

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

Track changes to a custom field (date field)

Helle Overbeck June 11, 2019

We have a custom field which is a date. When issue is created the field contains 'None'. At some point in the process a date is added to the field (changes from 'None' to a date). 

Is it possible to find issues where the date has been changed subsequently? That is, changed from the first date to a new date? 

Is it possible to count how many times a CF date field has been updated?

If not using JQL then in a script?

 

1 answer

1 accepted

0 votes
Answer accepted
Tarun Sapra
Community Champion
June 11, 2019

Hello @Helle Overbeck 

Yes, you can use a script do achieve this. 

You can use the following APIs

https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/changehistory/ChangeHistoryManager.html#getChangeItemsForField-com.atlassian.jira.issue.Issue-java.lang.String-

Based on the above API you can get the list of all changes for a field on a issue. If you use the script as part of the scripted field then the issue object is the underlying object which contains the scripted field. 

Helle Overbeck June 11, 2019

Thank you - I guess I was hoping for something more simple. 

Think I will need assistance (from colleagues) to be able to achieve this

Like Richard Jones likes this

Suggest an answer

Log in or Sign up to answer