Slack integration (OD-236)
Sebastien Collier opened 5 years ago

We'd like to have OneDev post to a slack channel with the webhook interface.

Unfortunately generating a slack app and entering the webhook URL into OneDev didn't work. Do you have any specifications of how this works?

Posting this works from command line.

curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/<redacted>/<redacted>/<redacted>
  • Robin Shen commented 5 years ago

    OneDev currently serialize various events into json with Jackson automatically, and you may use a http server to capture the posted json to check the detailed format. As to posting to Slack, it looks like that Slack expects a "text" field in posted json and OneDev does not have that field.

    Will add slack integration as well as Restful api in next major release.

  • Robin Shen changed fields 5 years ago
    Name Previous Value Current Value
    Type
    Support Request
    New Feature
  • Robin Shen changed title 5 years ago
    Previous Value Current Value
    Webhook documentation
    Slack integration
  • OneDev changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 3 years ago

    State changed as code fixing the issue is committed

  • Robin Shen added to iteration "7.5.0" 3 years ago
  • OneDev changed state to 'Released' 3 years ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 3 years ago

    State changed as build #2972 is successful

issue 1/1
Type
New Feature
Priority
Normal
Assignee
Iterations
Issue Votes (2)
Watchers (3)
Reference
OD-236
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover