• Community
  • Products
  • Jira Software
  • Questions
  • We've created a User Macro that calls js/jq script. When we add this macro to a page, clicking the Edit button, brings up a blank page (though using editpage.action?pageId=##### works), the Pagetree disappears & card/deck macros don't work. Any ideas?

We've created a User Macro that calls js/jq script. When we add this macro to a page, clicking the Edit button, brings up a blank page (though using editpage.action?pageId=##### works), the Pagetree disappears & card/deck macros don't work. Any ideas?

Deleted user October 21, 2015

Please add any details that might help us help you.

We've created a User Macro that calls js/jq script. When we add this macro to a page, clicking the Edit button, brings up a blank page (though using editpage.action?pageId=######## works), the Pagetree in the sidebar doesn't display and the ServiceRocket Composition plugin deck/card macros no longer work. What could be interfering with these basic functions?

Our macro: 

    1. Macro title: CGSearch Form Macro
    2. Macro has a body: N
    3. Parameters: Workspace
    4. Body processing: Selected body processing option
    5. Output: HTML
    6. Developed by: Wei Su
    7. Date created: 10/09/2015
    8. Installed by: Wei Su
    1. @param workspace:title=workspace|type=string|required=false|default=|desc=Specify Workspace. If no workspace is specified it will default to all.

<script src="/cgsearch/jquery-1.11.0.min.js">

</script>

<script src="/cgsearch/cgsearchformmacro.js">

</script>

<input type="text" style="display:none" name="SEARCH_rm_taxonomy_doc_workspace" value="$paramworkspace">
</script>

1 answer

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2015

Hei, first thing is: you have an unnecessary </script> closing tag

remove it

Also, Confuence already has jquery and you can use it using a AJS.$ instead of $

Usually there is no need to include that again

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events