Forums

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

There should be scripted, read-only field, to capture the Date when above Status is changed

Saudamini Deshmukh August 10, 2021

how to write a script for read-only field, to capture the Date when above Status is changed?

for eg,

ready for dev(date)

ready for QA(DATE)

ready to demo(date)

3 answers

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
September 1, 2021

Hi @Saudamini Deshmukh ,

As an alternative, you can try Status Time app developed by our team. It provides reports on how much time passed in each status and show status entry dates.

If you are looking for a free solution, you can try the limited version Status Time Free.

stf-issue-screen-view-2.png

Hope it helps.

0 votes
Nic Brough -Adaptavist-
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.
August 10, 2021

What scripting tool or automation do you have?

The data is trapped in the history already, and status can be used in JQL with the "was changed before/after" operator combinations, so you can already read and search for the data.

But yes, a scripted field that pulls it out would be handy.  I'd do it with a Scriptrunner scripted field, with an output template of date/time of course, and a short script to read the history for the date of the status change.  But I do work for Adaptavist, so I've got access to a library and people who can script far better than I can.  This, for example, shows you how to read history of an issue: https://library.adaptavist.com/entity/show-assignee-history-on-issue-details-page

Saudamini Deshmukh August 26, 2021

ok.Thanku so much for your response .I will try this one

0 votes
Aron Gombas _Midori_
Community Champion
August 10, 2021

I think instead of writing a script (it sounds like you are not experienced with that), you could use the Automation for Jira app and visually create the automation rule sets the value of those fields to "current date" (it's the action) when the status changes (it's the trigger).

Saudamini Deshmukh August 26, 2021

yes. I am new to this field. Thanks i will look into it.

Suggest an answer

Log in or Sign up to answer