In confluence macro configuration edit, on any dropdown option remove new page is getting opened .

Mahesh Muglikar July 10, 2024

 

Hi

The new page is getting opened when I click on remove option from multi select dropdown in macro configuration edit, option is getting removed, tried by adding prevent default function but it is not working.

By following way I bind data to the dropdown using jquery and javascript.

 

OkrProgressChartMacro.prototype.beforeParamsSet = function(selectedParams, macroSelected) {        

       if (selectedParams['prog-chart-status'] && selectedParams['prog-chart-statusName']) {

   var statusData = JSON.parse(selectedParams['prog-chart-status']).map(function(id, index) {

              return { id: id, text: JSON.parse(selectedParams['prog-chart-statusName'])[index] };

                                                });

                                 $('#macro-param-prog-chart-status').select2('data', statusData);

                                }

                }

 

testimage.PNG

As we can see in above image when I click on remove 'Test3' option it will open new page with following URL 

<hosturl>/pages/resumedraft.action?draftId=78458912&draftShareId=78954sdf1694-sdf-d2a9-47bc-a7eb-c26f4649fc6e&

am I doing anything here please suggest any solution for this.

Note: If I add timeout to set the dropdown data then it is working as expected.

                                                                                                        Thanks 

                                                                                                   Mahesh Muglikar

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events