-
Bug
-
Resolution: Fixed
-
Medium
-
Major
-
Issue Summary
The AP.confluence.getMacroData() operation does not reliably return the data saved using the AP.confluence.saveMacro() operation as indicated in the [API documentation|https://developer.atlassian.com/cloud/confluence/jsapi/confluence/].
Steps to Reproduce
- Open a macro, hit submit and save data via javascript api.
- When rendering the preview inside the page editor, we call getMacroData and we are receiving an empty object.
- Edit the same macro and perform getMacroData. You get the correct information.
- Add more info, submit and save.
- When rendering the preview inside the page editor, call getMacroData().
Expected Results
At step 2, the data returned by getMacroData() is empty. At step 5, the data returned by getMacroData() is the data saved in step 4.
Actual Results
The data returned by getMacroData() is the same as the data saved using the saveMacro() as indicated in the [API documentation|https://developer.atlassian.com/cloud/confluence/jsapi/confluence/].
Workaround
Pass state to the macro view page using URL query parameters.