When my group first started we created an issue collector that we had on our confluence page. The issue collector is set to "Attempt to match user session of submitter or submitter email address" and there is a default user.
We did this because not everyone had access to JIRA at the time. Now everyone has access but they are accustom to using the issue collector. When they are not logged into JIRA (but are logged into confluence) and they submit an issue, it gives them the option to put a name and email address but it is never used. This creates a ticket that we cannot trace back to our customer.
I have added some additional code to try to use the confluence user information to populate the reporter (they are both hooked up to our LDAP so the user names match) but it is still setting it to the default reporter
<button id="myIssueTrigger">Submit Request</button>
<script type="text/javascript">
</script>
<script type="text/javascript" src="http://jira/s/a37e24c533152b37fa9fd4b56efa4c15-T/-bnpff9/713011/a694471423336ae5e84f71e817907809/2.0.31/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?locale=en-US&collectorId=8f47a897"></script>
<script type="text/javascript">
var userEmail;
var user;
AJS.$.ajax({
url: "/rest/gadget/1.0/currentUser",
type: 'get',
dataType: 'json',
async: false,
success: function(data) {
userEmail = data.email,
user = data.username
}
});
window.ATL_JQ_PAGE_PROPS = {
"triggerFunction": function(showCollectorDialog) {
//Requires that jQuery is available!
//Use whatever ID you used on your Button/Trigger
//In this case, I used id="myIssueTrigger" in the Button/<a> element
//So I must use #myIssueTrigger here
jQuery("#myIssueTrigger").click(function(e) {
e.preventDefault();
showCollectorDialog();
});
}
// === default and hidden field values ===
, fieldValues : {
// default values
email : userEmail
, reporter : user
}
};</script>
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.