• 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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

246 views 1 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