Bulk issue edit without changing 'Updated' timestamp

Hi,

I'm in progress with migrating data from Mantis to JIRA. After the data import with JIRA Import plugin I tried to perform bulk issue edit with purpose of changing issue types based on some custom field. The problem is I'm overriding 'Updated' timestamp for all edited issue. This is not desired. Is there any way to edit issues without affecting 'Updated' field?

2 answers

I think you can use approach simular to the one described here

https://confluence.atlassian.com/display/JIRAKB/How+to+modify+an+issue+creation+date

Create a date picker custom field and set it to be the same value as the current update date. Then bulk update all issues and finally do the SQL modification as described in the KB. After that delete the custom field.

Thank you Boris,

I had feeling like I'll need to delve into JIRA DB. And since this is really so there is no need in bulk edit anymore, I've created query to change issue type in DB. Here is the query in case anyone struggle with same issue (JIRA reindex is required):

UPDATE jiraissue AS U set issuetype = 
(
	SELECT T.id
	FROM (SELECT * FROM jiraissue) as I
	LEFT JOIN issuetype AS T ON pname = 
	(SELECT STRINGVALUE FROM customfieldvalue WHERE CUSTOMFIELD = 
		(SELECT id FROM customfield WHERE cfname LIKE 'temp-Category' LIMIT 1)
		AND ISSUE = I.id)
	WHERE I.id = U.id
LIMIT 1
)

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot