-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
9.4.6, 9.12.0
-
9.04
-
7
-
Severity 2 - Major
-
3
-
Issue Summary
This is reproducible on Data Center: yes
Steps to Reproduce
- Create a new Issue type (Initiative, for example)
- Create a new Roadmaps Hierarchy level above Epic and configure the Initiative to it
- Add the Parent Link on the create, edit and view screens of the Epic
- Create two Initiatives, "Initiative A" and "Initiative B"
- Create an Epic and set it's Parent Link to Initiative A
- Archive Initiative A
- Reload the Epic and see the Parent Link is gone. Set the Parent Link to Initiative B
Update (15-02-2025): You can also archive the Epic (child) issue in reproducing the problem.
Expected Results
The data in entity_property and issuelink tables should be consistent.
Actual Results
The entity_property.json_value reflects the new Initiative B Id but the issuelink.source still contains the Id of Initiative A.
This database query can be used to spot all discrepant issuelink and entity_property data due to archived "parent Issues":
select il.id as "Link Id", concat(ps.pkey, concat('-', concat(source.issuenum, concat(' (', concat(il.source, ')'))))) as "Source Issue", concat(its.pname, concat(' (', concat(its.id, ')'))) as "Source Issue Type", concat(ilt.linkname, concat(' (', concat(il.linktype, ')'))) as "Link Type", concat(pd.pkey, concat('-', concat(dest.issuenum, concat(' (', concat(il.destination, ')'))))) as "Destination Issue", concat(itd.pname, concat(' (', concat(itd.id, ')'))) as "Destination Issue Type", e.json_value from issuelink il join issuelinktype ilt on ilt.id = il.linktype join jiraissue source on source.id = il.source join project ps on ps.id = source.project join issuetype its on its.id = source.issuetype join jiraissue dest on dest.id = il.destination join project pd on pd.id = dest.project join issuetype itd on itd.id = dest.issuetype join entity_property e on e.entity_id = dest.id and e.property_key = 'jpo-issue-properties' where ilt.pstyle = 'jira_jpos_parent_child' and source.archived = 'Y' order by 1 asc;
Workaround
From the results of the query above, a possible workaround is to:
- Unarchive the Parent Issues (reported as "source" by the query)
- Delete and recreate the Parent Link (to the new Issues, just to update the link from the old one)
- Archive the Parent Issue again
-------------------------------------------------------------
Additional update (15-02-2025)
- When you archive either the child or parent issue, the issue linking to the other ticket will disappear in the UI
- Screen recording: archival_parent_child.mp4
- Screen recording: archival_parent_child.mp4
-------------------------------------------------------------
- relates to
-
JSWSERVER-26364 Deleting the Parent Issue when the child is archived or deleting the Parent Issue Project of a Parent Link causes data discrepancy
-
- Short Term Backlog
-
- links to
- mentioned in
-
Page Loading...