Merge branch 'gh-pages' into develop
This commit is contained in:
commit
08abe28b3c
@ -1,5 +1,5 @@
|
|||||||
(function() {
|
(function() {
|
||||||
var version = "4.0.8";
|
var version = "4.1.1";
|
||||||
console.log("Version: " + version);
|
console.log("Version: " + version);
|
||||||
|
|
||||||
var global = {};
|
var global = {};
|
||||||
@ -808,7 +808,7 @@ body {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
direction: rtl;
|
||||||
}
|
}
|
||||||
.issue-icon {
|
.issue-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -827,7 +827,7 @@ body {
|
|||||||
background-color: GOLD !important;
|
background-color: GOLD !important;
|
||||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Bulb.png);
|
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Bulb.png);
|
||||||
}
|
}
|
||||||
.issue-icon[type="bug"] {
|
.issue-icon[type="bug"], .issue-icon[type="correction"] {
|
||||||
background-color: CRIMSON !important;
|
background-color: CRIMSON !important;
|
||||||
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Bug.png);
|
background-image: url(https://qoomon.github.io/Jira-Issue-Card-Printer/resources/icons/Bug.png);
|
||||||
}
|
}
|
||||||
@ -1310,10 +1310,41 @@ body {
|
|||||||
var jiraFunctions = (function(module) {
|
var jiraFunctions = (function(module) {
|
||||||
|
|
||||||
module.getSelectedIssueKeyList = function() {
|
module.getSelectedIssueKeyList = function() {
|
||||||
|
|
||||||
|
//Issues
|
||||||
|
if (/.*\/issues\/\?jql=.*/g.test(document.URL)) {
|
||||||
|
var jql = document.URL.replace(/.*\?jql=(.*)/, '$1');
|
||||||
|
var jqlIssues = [];
|
||||||
|
var url = '/rest/api/2/search?jql=' + jql + "&maxResults=1000";
|
||||||
|
console.log("IssueUrl: " + url);
|
||||||
|
//console.log("Issue: " + issueKey + " Loading...");
|
||||||
|
jQuery.ajax({
|
||||||
|
type: 'GET',
|
||||||
|
url: url,
|
||||||
|
data: {},
|
||||||
|
dataType: 'json',
|
||||||
|
async: false,
|
||||||
|
success: function(responseData) {
|
||||||
|
console.log("responseData: " + responseData.issues);
|
||||||
|
|
||||||
|
jQuery.each(responseData.issues, function(key, value) {
|
||||||
|
jqlIssues.push(value.key);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
console.log("jqlIssues: " + jqlIssues);
|
||||||
|
return jqlIssues;
|
||||||
|
}
|
||||||
|
|
||||||
//Browse
|
//Browse
|
||||||
if (/.*\/browse\/.*/g.test(document.URL)) {
|
if (/.*\/browse\/.*/g.test(document.URL)) {
|
||||||
return [document.URL.replace(/.*\/browse\/([^?]*).*/, '$1')];
|
return [document.URL.replace(/.*\/browse\/([^?]*).*/, '$1')];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Project
|
||||||
|
if (/.*\/projects\/.*/g.test(document.URL)) {
|
||||||
|
return [document.URL.replace(/.*\/projects\/[^\/]*\/[^\/]*\/([^?]*).*/, '$1')];
|
||||||
|
}
|
||||||
|
|
||||||
// RapidBoard
|
// RapidBoard
|
||||||
if (/.*\/secure\/RapidBoard.jspa.*/g.test(document.URL)) {
|
if (/.*\/secure\/RapidBoard.jspa.*/g.test(document.URL)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user