Customize Jira collector using HTML/JS?

ICANSEEYOU7867 May 25, 2022

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?

1 answer

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 8, 2022

@ICANSEEYOU7867 Are you trying to edit the issue collectors JS that is passed from the server or add additional JS that overrides the JS coming from the Jira server?

ICANSEEYOU7867 September 8, 2022

The second.  I have the auto populate fields working great 

I posted the solution here.

https://community.atlassian.com/t5/Jira-questions/Auto-populate-name-email-in-jira-issue-collector/qaq-p/960149?utm_source=atlcomm&utm_medium=email&utm_campaign=kudos_comment&utm_content=topic

I was wanting to hide the fields that have the user's name/email since these should already be auto populated via my posted js in the link. I think I could just inject this via script runner now, but it's been a while since I've taken a look into it.

Its been a while since I've looked into this, I need to go back and remember where I left off 

Suggest an answer

Log in or Sign up to answer