• Community
  • Products
  • Jira
  • 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?

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

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,049 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you