Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to move Name and E-mail field in Issue collector screen?

Anu Alppiranta September 21, 2018

Are name and email field always last fields in the issue collector form?

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 21, 2018

Hi Anu,

The name and email fields appear after the "customizable" fields (the ones in the Create screen for the issue type of the collector you've set up) and aren't movable in the Jira interface. If you've got matching set up and the user has an active Jira session, the collector will auto-populate their name/email based on their active Jira session.

While you can't configure the order of the name/email fields in the Issue Collector's settings, you can use jquery/javascript to move them around once you've embedded it on another page. Advanced use of the Jira issue collector shows some examples of manipulating the issue collector with a javascript injection. Using jquery, you can target the name/email fields, detach them from their current position, and insert them between two other fields (or before all the other fields) farther up in the form. Here's a tutorial on doing that in jquery if that all sounded unfamiliar.

Cheers,
Daniel

Brandon Pierce
Contributor
April 7, 2020

Hey Daniel,

I know just enough jQuery to be dangerous but I am struggling to implement this solution. I have a number of collectors that can be fired from a single HTML site.

Where would I put the jQuery in that case?

Any chance you have an example of what it would look like using jQuery to move a field on an HTML site with a custom trigger?

Thanks!

Brandon Pierce
Contributor
April 8, 2020

Through multiple attempts and research it seems like this is not, in fact, possible. Perhaps this is a change in the way that browsers handle jQuery injection since this post was initially made but it seems as if browsers, like Chrome, prevent this sort of injection out of security against XSS attacks.

Here is a Stack Overflow where this is discussed: Stack Overflow: jQuery Injection 

Its a shame that there isnt more flexibility available in the Issue Collector tool as it is extremely powerful, and could be even more so with added customization.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events