Skip to content

Commit

Permalink
Point feedback script at new JIRA
Browse files Browse the repository at this point in the history
NB: haven't tracked down where JIRA_COLLECTOR_ID is defined, so hardcoding for now.
  • Loading branch information
osfameron committed Sep 2, 2024
1 parent f21e15b commit da1bc51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/js/06-page-rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
'fieldValues': {
'summary': `Feedback on ${document.title}`,
'customfield_11580': window.location.href,
'customfield_11256': window.location.href,
'description': `\n\nBrowser environment: ${navigator.userAgent}`,
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/js/vendor/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

// if (Math.max(window.screen.availHeight, window.screen.availWidth) > 769) return
window.addEventListener('load', function () {
var config = document.getElementById('feedback-script').dataset
// var config = document.getElementById('feedback-script').dataset
var script = document.createElement('script')
// eslint-disable-next-line max-len
script.src = 'https://issues.couchbase.com/s/4e5aeb929d05d6c94d980322c73e6ee4-T/n8ktcf/805004/be0e2f3d0946caa44cd62a35c9de2f18/4.0.0/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js?locale=en-US&collectorId=' + config.collectorId // prettier-ignore
script.src = 'https://jira.issues.couchbase.com/s/d41d8cd98f00b204e9800998ecf8427e-T/-vg1gsr/b/7/c95134bc67d3a521bb3f4331beb9b804/_/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=8cee3bf4' // + config.collectorId // prettier-ignore
document.body.appendChild(script)
})
})()

0 comments on commit da1bc51

Please sign in to comment.