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

Commit

Permalink
Fix the issue of missing metrics
Browse files Browse the repository at this point in the history
Jira API has changed. Update the filter query to something that works.
  • Loading branch information
Jaakko Möller committed Apr 22, 2022
1 parent 6161a1a commit 6ecb4a6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,8 @@ app.all('/search',
passport.authenticate(authenticationStrategy, { session: false }),
(httpReq, httpRes) => {

// The JiraClient doesn't have any way to list filters so we need to do a custom query
jira.makeRequest({
uri: jira.buildURL('/filter')
}).then((jiraRes) => {

jira.filter.getFavoriteFilters(
).then(jiraRes => {
let result = jiraRes.map(filter => {
return {
text: filter.name,
Expand Down

0 comments on commit 6ecb4a6

Please sign in to comment.