steyep / alfred-jira

Alfred 3 (or Alfred 2) workflow for interacting with JIRA.
270 stars 60 forks source link

Projects and Statuses are not being populated. #115

Closed TerminalFi closed 4 years ago

TerminalFi commented 4 years ago

Installed, Logged in via API, Projects and Statuses aren't populated.

image

I’ve check using the api link in my browser and it works as expected, so does checking the statues available. Everything from the API seems to be working.

I’ve also used some of your npm scripts posted through other issues to test. And they work as expected there as well

Test

node << 'EOF'
const fs = require('fs');
const AJ = require('./lib/jira');
const configPath = `${process.env.HOME}/.alfred-jira/config.json`;
let config = require(configPath);
let disabled = config.options.available_projects.filter(s => !s.enabled).map(s => s.name);
AJ.getProjects().then(projects => {
  projects.map(s => { s.enabled = !disabled.includes(s.name); return s });
  config.options.available_projects = projects;
  console.log(JSON.stringify(projects));
  fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
});
EOF ╰─ node << 'EOF'                                                                                                                                                      ─╯
const fs = require('fs');
const AJ = require('./lib/jira');
const configPath = `${process.env.HOME}/.alfred-jira/config.json`;
let config = require(configPath);
let disabled = config.options.available_projects.filter(s => !s.enabled).map(s => s.name);
AJ.getProjects().then(projects => {
  projects.map(s => { s.enabled = !disabled.includes(s.name); return s });
  config.options.available_projects = projects;
  console.log(JSON.stringify(projects));
  fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
});
EOF
(node:35225) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
[]

Update

It appears that the even though I provided my unique URI I forgot to add my full email