-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Fixing Broken Links
-
None
-
3
Summary
After migrating to the cloud via CCMA, there may be Jira gadgets that reference Jira custom fields. These do not work after migration, as they still refer to the Jira Data Center custom field id.
The gadgets are in the form:
<ac:structured-macro ac:name="jirachart" ac:schema-version="1"
ac:macro-id="a0aa0111-ffa0-11aa-aa01-0011aaff00ff">
<ac:parameter ac:name="server">My Local Jira</ac:parameter>
<ac:parameter ac:name="sortDirection" />
<ac:parameter ac:name="jql">filter%3D%22Active%20Projects%22</ac:parameter>
<ac:parameter ac:name="ystattype">customfield_90000</ac:parameter>
<ac:parameter ac:name="chartType">twodimensional</ac:parameter>
<ac:parameter ac:name="width" />
<ac:parameter ac:name="sortBy" />
<ac:parameter ac:name="isAuthenticated">true</ac:parameter>
<ac:parameter ac:name="numberToShow">5</ac:parameter>
<ac:parameter ac:name="xstattype">customfield_90001</ac:parameter>
<ac:parameter ac:name="serverId">a0aa0111-ffa0-11aa-aa01-0011aaff00aa</ac:parameter>
</ac:structured-macro>
This is expected as the pattern is not listed at After a successful Server to Cloud Migration, URL links are broken in the new Cloud instance
Replication steps
Jira Data Center
- Create a single select custom field (or any reportable/statable type). For example:
- Color -> Custom field id 90000
- Red
- Orange
- Green
- Blue
- Violet
- Color -> Custom field id 90000
- Create a second single select custom field (or any reportable/statable type). For example:
- Flavor -> Custom field id 90001
- Bland
- Sweet
- Salty
- Sour
- Bitter
- Umami
- Flavor -> Custom field id 90001
- Create one or more Jira issues (in project FOOD) with values for Color and Flavor.
Confluence Data Center
- Create space RECIPE
- Create a page with a Jira Chart macro
- two-dimensional chart
- specify the x axis as Color (custom field id 90000)
- specify the y axis as Flavour (custom field id 90001)
- Publish the page
- Observe the macro renders with the correct statistics
Migration
- Migrate project FOOD to Jira Cloud
- Migrate space RECIPE to Confluence Cloud
Expected Results
As part of the post-migration link fixing, any custom field id references inside jirachart macros should also be updated.
Actual Results
After post-migration link fixing, the Jira chart macros do not render.
CCMA migrates the content as is, while link fixing does not update the custom field ids.
Workaround
(individual page) Manually update the Jira chart macros to refer to the correct custom fields.