Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colour Jira Telco Priority field #212 #283

Merged
merged 7 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}