Howdy,
I am configuring my issue collector in Jira and I want all Jira issues that my users create in Confluence always include environment data.
This is vital information that helps to recognize the page for which the question was rised or a response was left. Without this data, it's impossible to understand the source page and react on the problem.
Within the settings of every issue collector there's one that configures Jira to collect browser info. When enabled, the Collect browser info option ensures that Jira "Collects the environment data of the user, if they consent to being it collected. Thie data includes the browser type, screen resolution, referral header, and URL where the feedback was collected".
The issue is, when a user clicks the feeback button, they see that the feedback form by default has the environment check box off.
As seen above, the Include data about your current enironment, like the browser and page URL check box is cleared by default. This leads us without the info about the page URL because, users simply leave off the check box.
I understand that this is because we can't collect data without user consent, but could be somehow change the default setting for the check box from off to on?
Thank you.
Updated answer: It works! Make sure to add the code snippet at the bottom of your page.
I updated the JavaScript and the checkbox is selected automatically. This is what I have:
JavaScript
jQuery.ajax({
URL: "<URL>",
type: "get",
cache: true,
dataType: "script"
});
window.ATL_JQ_PAGE_PROPS = {
'<ID>' :{
"triggerFunction": function(showCollectorDialog) {
//Requires that jQuery is available!
$("#myCustomTrigger").click(function(e) {
e.preventDefault();
showCollectorDialog();
});
},
fieldValues: {
recordWebInfo: '1', // field Name
recordWebInfoConsent: ['1'] // field Id
}
}
};
HTML
<a href="#" id="docsFeedbackTrigger" class="docs-issue-collector">Provide feedback</a>
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.