How To Restore Resolution Date after Bulk Update with Script Runner

Hi,

I recently used the Script Runner to bulk edit the Resolutions on a bunch of my issues.  When I ran the script, I was unaware that it also changed the Resolution Date of the issues, so now all of my Resolution Dates are messed up.  Is there any way to restore the previous Resolution Date using Script Runner?

NOTE: I have already explored the ChangeHistoryManager in the Script Runner console.  Unfortunately, it looks like updates to the Resolution made via the Script Runner bulk update do not appear in the change history.  Changes to the resolution that take place due to workflow activities do show up in the change history.

Thanks in advance for the help!

1 answer

1 vote

If you have backups you can restore your system. If you have backups but you can not restore your system in production then you could restore it to another server. Then write a script to put all resolution dates into a file for the issues which were bulk edited. Then in production you could wirte a script which would read the file and update resolution dates. 

Maybe you could use csv import to import the file. But I doubt you can change resolution date with csv import.

Thank you for the suggestion Alexey.  We do have backups, however, since I didn't discover the problem for a few days, I can't do a wholesale restore for fear of losing information posted since I made my changes.

Fortuntely, we do have a staging server who's last refresh took place just _before_ I made my updates to the resolutions.  So I do have a way to at least recover what the values used to be.  As a last resort, I may have to do what you suggested and iterate over that spreadsheet to push back to the old resolutions dates.

Before I do that, I'm really hoping that somebody from Adaptavist is going to chime in and tell me how to find the old resolution date in some changelog buried deep in JIRA.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

772 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you