• 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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,815 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot