• 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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

106 views 2 0
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