Configuration Manager for Jira - Snapshot cannot be deployed because of a disabled plugin
Problem
An exported snapshot cannot be deployed to the target because a third-party plugin is unavailable. This particular plugin was disabled on the source.
Solution
The snapshot created needs to be analyzed to have further information on the data being deployed. The results were the following (for the disabled “Jira Charting Plugin”):
<plugins xmi:id="_h2udIFY7Ee6hx6_Ny4XZsA" name="JIRA Charting Plugin" key="com.atlassian.jira.ext.charting" version="3.0.0" vendor="Atlassian" vendorURL="http://www.atlassian.com" requiredBy="_RyYPbVY3Ee6hx6_Ny4XZsA"/>
<plugins xmi:id="_kFGsYU48Ee6v2vuxM-N2xw" name="JIRA Charting Plugin" key="com.atlassian.jira.ext.charting" version="3.0.0" vendor="Atlassian" vendorURL="http://www.atlassian.com" requiredBy="_KqIuX048Ee6v2vuxM-N2xw"/>
<portlets xmi:id="_KqIuX048Ee6v2vuxM-N2xw" nativeId="25965" column="1" row="2" color="color5" gadgetURI="rest/gadgets/1.0/g/com.atlassian.jira.ext.charting:workloadpie-gadget/com/atlassian/jira/ext/charting/gadget/workloadpie-gadget.xml" moduleKey="">
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_KqIuYE48Ee6v2vuxM-N2xw" name="isConfigured" value="true"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_KqIuYU48Ee6v2vuxM-N2xw" name="statistictype" value="assignees"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_KqIuYk48Ee6v2vuxM-N2xw" name="issuetimetype" value="timespent"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_KqIuY048Ee6v2vuxM-N2xw" name="isPopup" value="false"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_KqIuZE48Ee6v2vuxM-N2xw" name="refresh" value="120"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_KqIuZU48Ee6v2vuxM-N2xw" name="projectOrFilterId" value="filter-29049"/>
</portlets>
<portlets xmi:id="_RyYPbVY3Ee6hx6_Ny4XZsA" nativeId="36277" row="6" color="color1" gadgetURI="rest/gadgets/1.0/g/com.atlassian.jira.ext.charting:numberoftimesinstatus-gadget/com/atlassian/jira/ext/charting/gadget/numberoftimesinstatus-gadget.xml" moduleKey="">
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_RyYPblY3Ee6hx6_Ny4XZsA" name="isConfigured" value="true"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_RyYPb1Y3Ee6hx6_Ny4XZsA" name="isPopup" value="false"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_RyYPcFY3Ee6hx6_Ny4XZsA" name="statuses" value="1|3|10203"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_RyYPcVY3Ee6hx6_Ny4XZsA" name="refresh" value="false"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_RyYPclY3Ee6hx6_Ny4XZsA" name="periodName" value="daily"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_RyYPc1Y3Ee6hx6_Ny4XZsA" name="projectOrFilterId" value="filter-32421"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_RyYPdFY3Ee6hx6_Ny4XZsA" name="daysprevious" value="30"/>
<properties xsi:type="dashboard:JiraDashboardProperty" xmi:id="_RyYPdVY3Ee6hx6_Ny4XZsA" name="yaxisPeriod" value="hourly"/>
</portlets>
The first entries are the plugin's description, where the “requiredBy” field shows which element references that particular plugin. In this particular example, although the plugin was disabled, it was being used by two different dashboards.
CMJ will export plugins by design if data is related to them; and all data exported will be deployed, even if the plugin is disabled. To avoid this issue, all errors need to be fixed before the export.