• Community
  • Products
  • Jira
  • Questions
  • By mistake i have changed the workflow of one of my project, that has also changed the status of already raised tickets. Now all the tickets are in TODO state. Can i roll back this change and can go to previous state?

By mistake i have changed the workflow of one of my project, that has also changed the status of already raised tickets. Now all the tickets are in TODO state. Can i roll back this change and can go to previous state?

 

1 answer

1 vote
Vasiliy Zverev Community Champion Dec 07, 2016

You could try to get previous status using this SQL:

Select
	changeitem.OLDSTRING		as Status_was
	, changeitem.NEWSTRING		as Status_new
	, cwd_user.display_name		as Actor_Name
	, changegroup.CREATED		as Change_date
	, changegroup.*
from
	(Select
		changeitem.groupid
		, changeitem.ID
	from
		changeitem
	where
		changeitem.FIELD = 'status'
	) as onlyStatusChange
	join changeitem	on	onlyStatusChange.ID = changeitem.ID
	join changegroup
		join jiraissue	
			join project	on	jiraissue.PROJECT	=	project.ID
		on	 changegroup.issueid = jiraissue.ID
		join cwd_user	on	 changegroup.AUTHOR	= cwd_user.user_name
	on	onlyStatusChange.groupid = changegroup.ID
where
	project.pname = '' --enter name of a project
	and issuenum = 3 --enter issue number here
order by --change sort here
	changegroup.AUTHOR
	, changegroup.CREATED

That will get you the data you need to recreate it.  Do NOT try to "roll back" with this though.  Status is not a simple "field"

You need to put the old workflows (or similar ones) back in place, and then transition issues back trhough the workflow to where they should be, using the data given by this SQL.  Bulk edit will help you with that.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,724 views 17 21
Read article

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