Forums

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

A script for renewing "created time" when a problem is found, but not to duplicate existing problem

Svetoslav
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!
August 19, 2022

Hello. Is there any script for updating the "created time" when Jira problem appears, but not to creating the same problem with a different date/time?

Example: 

[PROBLEM] <service name> service not running
                  

Created:
28/Jul/22 08:00, 22 days ago
Updated:
03/Aug/22 09:00, 16 days ago

 

If the same problem appears again, now Jira will create a new item for the same problem.

I just want when there is a certain problem and the same problem appears, the date/time will be updated instead of creating a new item problem.

                     

1 answer

1 accepted

0 votes
Answer accepted
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 19, 2022

You should not be trying to do this.  There is no good reason to destroy the tracking information about when an issue was created.

If you are repeatedly re-opening the same issue, then you should be looking at the "date re-opened", not the issue create date.  Your best option, one that retains the accurate history of the issue, is to create a field called something like "last re-opened" or "last-reoccured" and use a post-function on the re-open transition to set it to "now" so that it captures each time the issue re-occurs.

Suggest an answer

Log in or Sign up to answer