Skip to content

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.

Resolves mikefrank-ca#10
  • Loading branch information
Jaakko Möller committed Apr 22, 2022
1 parent 6161a1a commit 7bfa653
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 7bfa653

Please sign in to comment.