Skip to content

Commit

Permalink
Merge pull request #283 from npalchur/Telco-Priorityfield
Browse files Browse the repository at this point in the history
colour Jira Telco Priority field #212
  • Loading branch information
dcritch authored Apr 3, 2024
2 parents 53b2474 + e841204 commit 07b32c7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
11 changes: 10 additions & 1 deletion dashboard/src/t5gweb/static/js/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ function format(data) {
result +=
'<h3>JIRA Issues:</h3><table class="table table-bordered table-hover table-responsive w-100"><thead><tr><th>#</th><th>Summary</th><th>Priority</th><th>Severity</th><th>Telco Priority</th><th>Target Release</th><th>Assignee</th><th>QA Contact</th><th>Last Updated</th><th>Status</th></tr></thead><tbody>';
for (let issue = 0; issue < data.issues.length; issue++) {
const telcoPriority =
data.issues[issue].private_keywords != null
? data.issues[issue].private_keywords.find((str) =>
str.includes("Priority"),
)
: null;
const priorityNum = telcoPriority
? telcoPriority.charAt(telcoPriority.length - 1)
: 0;
result +=
'<tr><td><a href="' +
data.issues[issue].url +
Expand All @@ -50,7 +59,7 @@ function format(data) {
(data.issues[issue].jira_severity != null
? data.issues[issue].jira_severity
: "---") +
"</td><td>" +
`</td><td class="telco-priority-${priorityNum}">` +
(data.issues[issue].private_keywords != null
? data.issues[issue].private_keywords.find((str) =>
str.includes("Priority"),
Expand Down
19 changes: 18 additions & 1 deletion dashboard/src/t5gweb/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,21 @@ span.anchor {
/* Makes sure Navbar doesn't cover content */
.new-cases {
padding-top: 70px;
}
}

/* Telco priority */
.telco-priority-1 {
color: red !important;
}

.telco-priority-2 {
color: orange !important;
}

.telco-priority-3 {
color: blue !important;
}

.telco-priority-4 {
color: black !important;
}

0 comments on commit 07b32c7

Please sign in to comment.