Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issue collector: How do I always collect the URL of the source page. Enabling environment check box Edited

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".

Issue.Collector.Config.png

 

The issue is, when a user clicks the feeback button, they see that the feedback form by default has the environment check box off.

Issue.Collector.Feedback.Form.png

 

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.

2 answers

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>

 

Do it with Javascript, it works great.

Detailed instructions on the 'Advanced Issue Collector' pages.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

177 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you