I have been trying to find some details on this and I have been having a lot of trouble. Currently I am using the jira collector and I have the javascript implemented on a confluence page and all of that is working beautifully. I even have the user name and email address populating the correct fields automatically once you view the collector.
However I am trying to do something like this:
https://blog.developer.atlassian.com/totw-adapting-the-issue-collector/
However, this does not work and is messy. I am hoping to add some custom JS to hide the name and email fields all together. I cant seem to find out how to do this. We also have scriptrunner, but I cant seem to get script runner to do what I want either. Anyone have any ideas or know of any good resources for this sort of thing?