• Community
  • Products
  • Jira Software
  • 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?

Arun Kumar Sharma December 7, 2016
 

1 answer

1 vote
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 7, 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
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.
December 7, 2016

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