Forums

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

How to capture date/time based on field values

Lakshmi CH
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.
June 2, 2022

Hi Team,

New field to capture the following

We need to capture the date/time that a particular issue type ticket Sprint value changes to either Community | In Process' OR 'Non-Community - Prioritized'.

We have JMWE , JSU and Script runner addons.

Thanks!

Sara

2 answers

0 votes
Raynard Rhodes
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.
June 3, 2022

ScriptRunner is your best option. You can look at the change history to get the change item for that specific field and the time the change occured. 

The second answer has a bit of code you may be able to modify.

https://community.atlassian.com/t5/Jira-questions/How-to-get-historical-values-from-custom-field-with-scriptrunner/qaq-p/1879270

0 votes
David Fischer
Community Champion
June 2, 2022

Hi @Lakshmi CH 

You can use an event based action to react to changes to the Sprint field, adding a condition to check the Sprint value, and a Set Field Value post function to set the date time field value to the current date/time. 

Suggest an answer

Log in or Sign up to answer