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 Default for "Include data about your current environment"

When using an issue collector that has the checkox:

"Include data about your current environment, like the browser and page URL. This helps us understand your feedback better."

Is there a way to default that item as checked?  There are cases where this information would be helpful to be automatically included in the issue.  I have used the "fieldValues" option default the users Name and Email address and would like to-do the same for this checkbox.

5 answers

All of our users are employees (we have no external customers) therefore user privacy is not an issue for our business. Although we have been sending periodic communication reminding employees to check the box they only do so about 50% of the time. We want the ability to establish our issue collector so that the default is CHECKED instead of not checked for the "include environment" checkbox so that we receive important information for troubleshooting reported issues. I have submittted a request: JRASERVER-63370If this is an issue that would benefit your business, would you please click the link above and submit a vote for Atlassian to implement this feature?  

When I select that option "issue collector", where am I expected to find the "Location", "Referer", "User-agent" data in the issue ticket created in my Board?

 

The issue is created but I can't find anywhere this data on the issue detail screen...

Hello, May I know if this has been resolved or not? I would also want this feature in my form. Thanks!

This has not been resolved

I was trying a way to use the advanced feature.

So I tried this:

fieldValues: {

'customfield_recordWebInfoConsent': 'checked'

  }

 

 

I tried adding a default value but I think I'm doing something wrong with the value. I hope someone can help me figure out which value will set it to checked. But I got the right ID already --- recordWebInfoConsent.

Just In case, if this has not been resolved yet. This is how I did it.

fieldValues: {

recordWebInfo: '1', // field Name
recordWebInfoConsent: ['1'] // field Id

 

}

I tried what @subindongol suggested, it's half-working. The checkbox is selected automatically, but the created issue does not include the URL. 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>

 

I figured it out. The above code is correct, but you will also need to add the environment field in the project settings. The Environment field option will be visible in the Issue collector settings.

Screenshot 2020-11-05 114628.png

That's it. You don't even need to select it. The URL data will be visible in the created issue.

URL.png

Suggest an answer

Log in or Sign up to answer
TAGS

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