For a Story issue type, I want to track the total time spent in a particular status using a timer. While using a Scripted Field in ScriptRunner for Jira Cloud, I can achieve this. However, if the issue moves back to the same status, I want the timer to continue from the previously recorded value, not restart from zero.
Is there a way to store the accumulated time so that it can be retrieved and resumed if the issue transitions back to that status?
Note:
- I am using Jira Cloud and prefer not to use any third-party apps or add-ons. I am looking to explore the feasibility of achieving this using ScriptRunner Cloud.
- Only one custom field to display and calculate time.