-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.0.3, 6.4.12, 7.4.1
-
6
-
9
-
Severity 3 - Minor
-
1
-
Summary
When importing a project, issue status ids are mapped from the old IDs to new IDs based on the issue status names.
This leads to the Agile Burndown, Cumulative Flow Diagram charts becoming wrong, as the change history entries are referring to different or nonexistent issue statuses.
Steps to Reproduce
- Configure Source JIRA with <STATE> and do multiple transitions.
- Make xml backup.
- Import xml backup into Target JIRA
- Check changeitem table oldvalue and newvalue values
Expected Results
The change history oldvalue and newvalue fields are update to match Target JIRA.
Actual Results
When this is done, the change history oldvalue and newvalue fields are not updated.
Notes
I can see two ways of fixing this:
- a. Change Agile to look at changeitem.oldstring and changeitem.newstring instead of changeitem.oldvalue and changeitem.newvalue when it's determining status change history
- b. Change the project import process to do the equivalent of:
update changeitem set newvalue=(select id from issuestatus where pname=changeitem.newstring) and field='status' and fieldtype='jira' and groupid in (select id from changegroup where issueid in (select id from jiraissue where project = :projectid)); update changeitem set oldvalue=(select id from issuestatus where pname=changeitem.oldstring) and field='status' and fieldtype='jira' and groupid in (select id from changegroup where issueid in (select id from jiraissue where project = :projectid));
Workaround
Update DB table changeitem manually for each state: <STATE> .
UPDATE changeitem SET oldvalue = '<TARGET_STATE_ID>' WHERE fieldtype = 'jira' AND FIELD = 'status' AND oldvalue = '<SOURCE_STATE_ID>' AND oldstring LIKE "<STATE>%" UPDATE changeitem SET newvalue = '<TARGET_STATE_ID>' WHERE fieldtype = 'jira' AND FIELD = 'status' AND newvalue = '<SOURCE_STATE_ID>' AND newstring LIKE "<STATE>%"
- is related to
-
JRASERVER-35604 jira project import does not remap issue state changes from changeitem table
- Gathering Impact
- relates to
-
JRASERVER-28748 Project Imports should include relevant Active Objects data
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...