//
// Create a copy-pastable list of issuetitle + links. Easy for in Slack, Powerpoint
// Create a copy-pastable list of HTML-tablerows for testscenarios which can be used in Confluence or any othe HTML page.
//
// click on Backlog-header to open a new tab with the name + link of each issues
// @author Oebe, Stefan, Leroy, Rinki, Vlad, Javad
//
// =========== configuration : start ===============
// Show the amount of Story Point on the Active Sprints board aka scrumboard
var bShowStoryPointsOnScrumboard = true;
// Adjust the sizes of the columns on the Active Sprints board aka scrumboard
var bAdjustColumnSizesOnScrumboard = true;
// Hide Done subtasks above threshold amount
var doneSubtasksLimit = 5;
/* Test Sceanrios feature ======= */
// Show HTML for Test Scenarios when clicking on Show copyable list
var bShowTestScenarios = true;
// Add rows for browsertest in the Test Scenarios (set to false for backend-teams)
var bAddBrowserchecksInTestScenarios = false;
// set columnheaders in the Test Scenarios
var colHeader1 = 'Test user(s) /
Test data';
var colHeader2 = 'Scenario/ steps to execute';
var colHeader3 = 'Expected result';
var colHeader4 = 'Actual result';
var colHeader5 = 'Remarks';
// Fill in jiraServerId for Confluence macros to JIRA stories
// You can get this ID by looking into the source of a confluence page while you added a JIRA marcro in that page, or ask your admin: https://confluence.atlassian.com/adminjiraserver/finding-your-server-id-938847652.html
var jiraServerId = '';
var jiraLicense = 'server'; // server or cloud
// =========== configuration : end ===============
var timer;
function AddBacklogFunctionalities() {
if (jiraLicense == 'server') {
$('.ghx-mode-planning .js-quickfilter-selector').append('| Show copyable list');
} else {
$('.ghx-mode-planning #ghx-quick-filters > ul').append('
| \
\
\
\
| \
||||
| '+colHeader1+' | \'+colHeader2+' | \'+colHeader3+' | \'+colHeader4+' \
| \
'+colHeader5+' | \
|---|---|---|---|---|
| '+description[storyId]+' | \||||
| \
Check all the above scenarios in below browsers for a desktop: \ - IE11 (not supported, but tested for awareness) \ - Edge \ - Firefox \ - Mac Safari \ | \
All test scenarios must look good in these browsers, devices. | \|||
| \
Check all the above scenarios in below browsers for a Android mobile devices: \ - iPad Air 2/ iPad 2017, Safari, landscape \ - iPad Air 2/ iPad 2017, Safari, portrait \ | \
All test scenarios must look good in these browsers, devices. | \|||
| \
Check all the above scenarios in below browsers for a iOS mobile devices: \ - iPhone 8, Safari, iOS11, portrait \ - iPhone 8, Safari, iOS11, landscape\ | \
All test scenarios must look good in these browsers, devices. | \|||
| \
Check the 3 languages: \ - English \ - Dutch \ - French\ | \
Languages must be correct on the web page. | \|||
| Check in PDF | \\ Changes must be correct and in sync with PDF in all languages \ | \|||