Skip to content
This repository was archived by the owner on Jul 29, 2022. It is now read-only.

Commit 6ecb4a6

Browse files
author
Jaakko Möller
committed
Fix the issue of missing metrics
Jira API has changed. Update the filter query to something that works.
1 parent 6161a1a commit 6ecb4a6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

server.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,8 @@ app.all('/search',
7575
passport.authenticate(authenticationStrategy, { session: false }),
7676
(httpReq, httpRes) => {
7777

78-
// The JiraClient doesn't have any way to list filters so we need to do a custom query
79-
jira.makeRequest({
80-
uri: jira.buildURL('/filter')
81-
}).then((jiraRes) => {
82-
78+
jira.filter.getFavoriteFilters(
79+
).then(jiraRes => {
8380
let result = jiraRes.map(filter => {
8481
return {
8582
text: filter.name,

0 commit comments

Comments
 (0)