Forums

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

Undoing bulk changes and changes made to many issues

Jon
Contributor
July 24, 2019

Hi

Our team uses bulk changes, bulk imports, and some addon that makes doing a lot of changes very fast and easy. my question is if there was change that was made in error is there anyway to undo it? Please let me know how i would do such a thing. 

 

Jon 

1 answer

0 votes
Thomas Deiler
Community Champion
July 24, 2019

Dear @Jon ,

there is no UNDO function in Jira at all. So you can do two things:

a) Backward Fixing: Replay an old dump / restore DB to a time before the bulk or just restore one project to a former status.

b) Forward Fixing: Read the history information with REST API and replace all "newvalue" entries with the "oldvalue" entries for all issues that are within a specific date range.

So long

Thomas

Jon
Contributor
July 24, 2019

hi Thomas, yeah we would need to learn these. is there more info on how to pull each of these off? 

Thomas Deiler
Community Champion
July 24, 2019

For a) Importing issues

For b) To get the history of one issue you need to

GET /rest/api/2/issue/{issueIdOrKey}?expand=changelog

Depending on what was changed you have to update the issue or transition the issue. See Cloud REST API for details.

Jon
Contributor
July 25, 2019

Is this like something scriptrunner can do or how do I do a REST API? 

Thomas Deiler
Community Champion
July 26, 2019

Dear @Jon ,

if you have already bought this plugin than you have to write a groovy script. I have too less xp to advice you for writing such a script. You can ask for help in the developer community of Atlassian.

The API calls can be also scripted. No plugin is required. Depending on your knowledge you can use eg. PHP or python. This makes sense for +100 issues to fix. With a combination of different rest calls you can achieve what you want. I would say roughly one day of work for an advanced developer.

If you have just a few issue to undo, you could check the free plugin Action Undo on the marketplace.

So long

Thomas

Jon
Contributor
July 29, 2019

will  check out how it would work with scriptrunner. 

 

on the add ons, Action Undo is not for cloud I believe, are there any add ons that are for cloud? 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events