I am looking for a SQL query in order to update the data from custom field to jira issue field.
I have a custom field call “Issue Description” and the Field Type = Free Text Field (unlimited text).
I wanted to update all the issue Description data to Description field for a particular project.
I am not sure, what are the tables I have to join in order to update field.
It might cause any issue in terms of data integrity stand point?
Database MS SQL 2008
JIRA version 4.4
You'll need to copy data from customfieldvalue to jiraissue - you'll find customfieldvalue has several columns but you're interested only in issue (this is the column ID in Jiraissue), customfield (this is the id of the customfield, you can get that in several ways - hovering the cursor over the "edit" next to the custom field in the full list of fields for example) and textvalue. Iterate through the customfieldvalue table, and copy the textvalue to jiraissue.description
Bear in mind a flat copy will replace any existing Description on the issues.
For data integrity, you don't need to worry too much, as the structure is quite simple, but you absolutely must
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events