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

Svetoslav 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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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