Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,403
Community Members
 
Community Events
168
Community Groups

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

Svetoslav I'm New Here Aug 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

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