Closed timfallmk closed 8 years ago
You need a token for the Slack API: https://api.slack.com/web
Hi @tjdownes There is one, as you can see in the config. It is removed for security, and the user/pass combos are changed for the same reason. I'll make it more explicit.
Yup, you're right. Your error and mine were different. However, I just bumped into the same error, and it seems even though I had a named connection it was still expecting "DEFAULT". When I renamed the connection to DEFAULT, it works
Error handling leaves something to be desired, for sure.
Hmm, that is strange. I do seem to get one API connection built for the SSL-required Jira, but the "open" one doesn't show. Let me try switching that name to DEFAULT
and see what I get.
jira_urls: {
"DEFAULT": {
url: 'https://myurl/browse/',
jira: {//OPTIONAL: provide access to jira credentials for a particular repository
user: 'user',
password: 'Password',
host: 'host.net',
protocol: 'https',
port: 443,
version: '2',
strictSSL: true
}
}
},
This is what my jira_urls
looks like now, and it is working
Yep, changing at least one of the JIRA links to DEFAULT
gets it past that problem. Seems like a bug.
I agree. Bug.
the way it works is given a project name, it looks for an entry in the jira_urls. If there isn't one there, it falls back on DEFAULT.
I can get the bot to respond to issues in Slack, but it doesn't seem to get the correct base url to look up the issues. My config is:
The output I get for a match is:
Also notice that it creates the api for only the first listed jira url.