Thanks @dmorrow.
It’s possible that there could be some other issue in the background of our setups, because I had another issue with saveMacro
not behaving as expected (Confluence.saveMacro does not save macro body).
Would be interesting to see what the real problem is.