Giter VIP home page Giter VIP logo

redmine_webhook's Introduction

Redmine WebHook Plugin

A Redmine plugin posts webhook on creating and updating tickets.

Author

  • @suer

Install

Type below commands:

$ cd $RAILS_ROOT/plugins
$ git clone https://github.com/suer/redmine_webhook.git
$ rake redmine:plugins:migrate RAILS_ENV=production

Then, restart your redmine.

Post Data Example

Issue opened

{
  "payload": {
    "issue": {
      "author": {
        "icon_url": "http://www.gravatar.com/avatar/example",
        "identity_url": null,
        "lastname": "user",
        "firstname": "test",
        "mail": "[email protected]",
        "login": "test",
        "id": 3
      },
      "assignee": {
        "icon_url": "http://www.gravatar.com/avatar/example",
        "identity_url": null,
        "lastname": "user",
        "firstname": "test",
        "mail": "[email protected]",
        "login": "test",
        "id": 3
      },
      "priority": {
        "name": "normal",
        "id": 2
      },
      "tracker": {
        "name": "bug",
        "id": 1
      },
      "parent_id": null,
      "root_id": 191,
      "closed_on": null,
      "updated_on": "2014-03-01T15:17:48Z",
      "created_on": "2014-03-01T15:17:48Z",
      "description": "I'm having a problem with this.",
      "subject": "Found a bug",
      "id": 191,
      "done_ratio": 0,
      "start_date": "2014-03-02",
      "due_date": null,
      "estimated_hours": null,
      "is_private": false,
      "lock_version": 0,
      "project": {
        "homepage": "",
        "created_on": "2013-01-12T11:50:26Z",
        "description": "",
        "name": "Test Project",
        "identifier": "test",
        "id": 4
      },
      "status": {
        "name": "new",
        "id": 1
      }
    },
    "action": "opened",
    "url": "https://example.com"
  }
}

Issue updated

{
  "payload": {
    "url": "https://example.com",
    "journal": {
      "details": [],
      "author": {
        "icon_url": "http://www.gravatar.com/avatar/example",
        "identity_url": null,
        "lastname": "user",
        "firstname": "test",
        "mail": "[email protected]",
        "login": "test",
        "id": 3
      },
      "assignee": {
        "icon_url": "http://www.gravatar.com/avatar/example",
        "identity_url": null,
        "lastname": "user",
        "firstname": "test",
        "mail": "[email protected]",
        "login": "test",
        "id": 3
      },
      "private_notes": false,
      "created_on": "2014-03-01T16:22:46Z",
      "notes": "Fixed",
      "id": 195
    },
    "issue": {
      "author": {
        "icon_url": "http://www.gravatar.com/avatar/example",
        "identity_url": null,
        "lastname": "user",
        "firstname": "test",
        "mail": "[email protected]",
        "login": "test",
        "id": 3
      },
      "priority": {
        "name": "normal",
        "id": 2
      },
      "tracker": {
        "name": "bug",
        "id": 1
      },
      "parent_id": null,
      "root_id": 196,
      "closed_on": null,
      "updated_on": "2014-03-01T16:22:46Z",
      "created_on": "2014-03-01T15:44:22Z",
      "description": "test",
      "subject": "Found a bug",
      "id": 196,
      "done_ratio": 0,
      "start_date": "2014-03-02",
      "due_date": null,
      "estimated_hours": null,
      "is_private": false,
      "lock_version": 2,
      "project": {
        "homepage": "",
        "created_on": "2013-01-12T11:50:26Z",
        "description": "",
        "name": "Test Project",
        "identifier": "test",
        "id": 4
      },
      "status": {
        "name": "normal",
        "id": 1
      }
    },
    "action": "updated"
  }
}

Requirements

  • Redmine 4.0 or later

Skipping webhooks

When a webhook triggers a change via REST API, this would trigger another webhook. If you need to prevent this, the API request can include the X-Skip-Webhooks header, which will prevent webhooks being triggered by that request.

Known Limitations

An update from context menu doesn't call a webhook event. It is caused by a lack of functionality hooking in Redmine. Please see #4 for details.

This limitation has been affected on all Redmine versions includes 2.4, 2.6, and 3.0. It is not fixed in end of April, 2015.

License

The MIT License (MIT) Copyright (c) suer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

redmine_webhook's People

Contributors

bmalynovytch avatar corthmann avatar miurahr avatar serpi90 avatar suer avatar tenten0213 avatar yzzy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_webhook's Issues

no requests were made

I installed this plug-in and added URL to the configuration page, but after submitting the problem, nothing happened. I used the version of 3.1.0. Is there anything else I need to configure? Can you help me? You know, I'm a newbie. Ha ha ha

Hook URL is called but there is no post data in the request.

Hi,
I think there is an incompatibility with Redmine 3.1.1.
Using the webhook plugin I can see the target URL being called while changing a ticket. I'm logging the whole request on the target side. However there is no post data attached to the request. Using curl or any other method to generate requests with post data do work, it's just the requests by the webhook-plugin that seem to have no post data.
Can somebody confirm that behavior, or am I doing something wrong?
Here's my redmine version information:

Environment:
  Redmine version                3.1.1.stable
  Ruby version                   1.9.3-p194 (2012-04-20) [x86_64-linux]
  Rails version                  4.2.4
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.6.17
  Git                            1.7.10.4
  Filesystem                     
Redmine plugins:
  redmine_app__space             1.0.3
  redmine_app_timesheets         1.5.3
  redmine_bootstrap_kit          0.2-devel
  redmine_emojibutton            0.3.0
  redmine_pusher_notifications   1.0.2
  redmine_webhook                0.0.1
  sidebar                        0.1.

Can't create webhook using API

I tried creating webhook by making request to post 'projects/:id/webhook_settings/create', :controller => 'webhook_settings', :action => 'create', :as => :create_webhook. API key is set using X-Redmine-API-Key header. Redmine throws Invalid form authenticity token.. Is there any proper API for that?

Webhook is not triggered with old version

how to solve it

================
Environment:
Redmine veresion 3.4.2.stable
Ruby version 2.3.4-p301(2017-03-30) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter Mysql2

SCM:
Subversion 1.9.7
Mercurial 1.4
Bazaar 2.1.1
Git 2.10.1
Filesystem

Redmine plugins:
redmine_gitlab_hook 0.2.2
redmine_ldap_sync 2.1.1.devel
redmine_webhook 0.0.4

Redmine 5.1.1.stable, NoMethodError

Hi! Trying to make it work, but no results so far.

Redmine version: 5.1.1.stable
Ruby version: 3.0.0-p0 (2020-12-25) [x86_64-linux]
Rails version: 6.1.7.6

What happens when I try to create a webhook for project:

image

Logs:

E, [2024-03-15T12:05:39.939463 #97694] ERROR -- : [1f0ac134-463a-4f5d-adc4-e974d4065370] ActionController::InvalidAuthenticityToken: ActionController::InvalidAuthenticityToken
F, [2024-03-15T12:06:38.469900 #97694] FATAL -- : [59919cd6-6063-4c78-931b-907f7dfd4113]   
[59919cd6-6063-4c78-931b-907f7dfd4113] NoMethodError (undefined method `url=' for #<Webhook id: nil, gettokenUrl: nil, app_id: nil, app_secret: nil, getidUrl: nil, imUrl: nil, project_id: 408>
Did you mean?  imUrl=):
[59919cd6-6063-4c78-931b-907f7dfd4113]   
[59919cd6-6063-4c78-931b-907f7dfd4113] plugins/redmine_webhook/app/controllers/webhook_settings_controller.rb:11:in `create'
[59919cd6-6063-4c78-931b-907f7dfd4113] lib/redmine/sudo_mode.rb:61:in `sudo_mode'
F, [2024-03-15T12:07:22.043771 #97694] FATAL -- : [989d8bfe-bdc4-42ef-9f29-6a96799abfda]   
[989d8bfe-bdc4-42ef-9f29-6a96799abfda] NoMethodError (undefined method `url=' for #<Webhook id: nil, gettokenUrl: nil, app_id: nil, app_secret: nil, getidUrl: nil, imUrl: nil, project_id: 408>
Did you mean?  imUrl=):
[989d8bfe-bdc4-42ef-9f29-6a96799abfda]   
[989d8bfe-bdc4-42ef-9f29-6a96799abfda] plugins/redmine_webhook/app/controllers/webhook_settings_controller.rb:11:in `create'
[989d8bfe-bdc4-42ef-9f29-6a96799abfda] lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Tried many forks of this plugin, issue is the same. What happened in latest Redmine releases? Maybe my Ruby is too old/new? What can I do to resolve my issue?

Redmine 4.x can not works

When I installed 9acb467 in my Redmine4.0.4stable,
webhook settings could not looked in project setting.

Dose it possible to work in the below environment?

Environment:
  Redmine version                4.0.4.stable
  Ruby version                   2.5.5-p157 (2019-03-15) [x64-mingw32]
  Rails version                  5.2.3
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.12.2
  Git                            2.19.1
  Filesystem                     
Redmine plugins:
・・・
  redmine_webhook                0.0.5

Using Bitnami Redmine version 4.2.3 [Installation Problems]

Hi @suer !

I'm new to redmine plugins and also new to RoR.
I tried to install this plugin on my bitnami, followed the instructions,

but I seem to fail on the rake command.

$ rake redmine:plugins:migrate RAILS_ENV=production

Since it cannot locate the rakefile
Wx9bW0EZqt

I'm not sure if the plugin is compatible with my redmine version,
Would like your assistance on this.

Thanks!

randomly wrong jsondata sent by the webhook

hi,I'm using this plugin with redmine v5.0.6,and create two webhook send to different backend
that's almost work but sometime the jsondata sent by the plugin can't parse
image
it looks linke the jsondata has extra "," course this error:
image

is this plugin has problem work with the custom field?

Bitnami Redmine 4.0.4.stable can not find webhook tab

According to the log, you could find webhook tab, but empty page was loaded.

The tab is loaded when user is admin or "manage webhook" permission of the user is enabled.

In your log, you accessed the tab by admin (user_id = 1), so setting page should be displayed...

Anyway, please check "manage hook" permission.
The permission setting will be found in "Role and Permission" setting page.

I tried it, still not work,so sad.
Can you help me. please.

image

I use Bitnami Redmine

Environment:
  Redmine version                4.0.4.stable
  Ruby version                   2.5.5-p157 (2019-03-15) [x86_64-linux]
  Rails version                  5.2.3
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.12.0
  Git                            2.19.1
  Filesystem                     
Redmine plugins:
  easy_gantt                     1.12
  periodictask                   4.1.0
  redmine_agreement              0.1.1
  redmine_banner                 0.2.0
  redmine_checklists             3.1.16
  redmine_ckeditor               1.2.2
  redmine_code_review            1.0.0
  redmine_contacts               4.2.5
  redmine_dmsf                   2.0.0
  redmine_favorite_projects      2.1.0
  redmine_issue_dynamic_edit     0.6.7
  redmine_lightbox2              0.5.0
  redmine_products               2.1.0
  redmine_tags                   4.0.0
  redmine_webhook                0.0.5
  redmine_work_time              0.4.0
  select_to_select2              0.1.0

when i open project setting,there was nothing about webhook in the logs.

Started GET "/redmine/projects/zero/settings" for **.**.**.158 at 2020-02-26 10:33:04 +0800
Processing by ProjectsController#settings as HTML
  Parameters: {"id"=>"zero"}
  Current user: *** (id=23)
  Rendering projects/settings.html.erb within layouts/base
  Rendered plugins/redmine_dmsf/app/views/hooks/redmine_dmsf/_view_projects_form.html.erb (0.0ms)
  Rendered plugins/redmine_favorite_projects/app/views/projects/_tags.html.erb (1.8ms)
  Rendered projects/_form.html.erb (9.3ms)
  Rendered projects/_edit.html.erb (10.1ms)
  Rendered projects/settings/_members.html.erb (23.4ms)
  Rendered projects/settings/_issues.html.erb (14.1ms)
  Rendered projects/settings/_versions.html.erb (6.0ms)
  Rendered projects/settings/_issue_categories.html.erb (1.1ms)
  Rendered projects/settings/_repositories.html.erb (0.9ms)
  Rendered projects/settings/_boards.html.erb (1.0ms)
  Rendered projects/settings/_activities.html.erb (4.8ms)
  Rendered common/_tabs.html.erb (65.9ms)
  Rendered projects/settings.html.erb within layouts/base (67.8ms)
  Rendered plugins/redmine_code_review/app/views/code_review/_html_header.html.erb (0.1ms)
  Rendered plugins/redmine_contacts/app/views/contacts_issues/_additional_assets.html.erb (0.4ms)
  Rendered plugins/redmine_tags/app/views/tags/_header_assets.html.erb (0.3ms)
  Rendered plugins/redmine_favorite_projects/app/views/favorite_projects/_additional_assets.html.erb (0.1ms)
  Rendered plugins/redmine_code_review/app/views/code_review/_body_bottom.html.erb (0.1ms)
  Rendered plugins/redmine_contacts/app/views/common/_contacts_select2_data.html.erb (0.5ms)
  Rendered plugins/redmine_favorite_projects/app/views/favorite_projects/_select2_transformation_rules.html.erb (0.1ms)
  Rendered plugins/redmine_products/app/views/products/_select2_transformation_rules.html.erb (0.3ms)
Completed 200 OK in 103ms (Views: 81.9ms | ActiveRecord: 12.1ms)

Originally posted by @lazydao in #26 (comment)

No rakefile found

Please check, when i run, there's error:
/bitnami/redmine/plugins# rake redmine:plugins:migrate RAILS_ENV=production
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

(See full trace by running task with --trace)

Error in projects settings

After install the plugin - "Settings" page, from projects, do not open with errors:

`Started GET "/projects/bcd/settings" for 80.243.11.22 at 2019-07-03 18:26:25 +0300
Processing by ProjectsController#settings as HTML
Parameters: {"id"=>"bcd"}
Current user: admin (id=1)
Rendered projects/settings.html.erb within layouts/base (208.1ms)
Completed 500 Internal Server Error in 224ms (ActiveRecord: 2.1ms)

ActionView::Template::Error (super: no superclass method project_settings_tabs' for #<#<Class:0x00007ff2b3b13048>:0x00007ff2b3ace9c0> Did you mean? project_settings_tabs_with_contacts): 1: <h2><%=l(:label_settings)%></h2> 2: 3: <%= render_tabs project_settings_tabs %> 4: 5: <% html_title(l(:label_settings)) -%> plugins/redmine_webhook/lib/redmine_webhook/projects_helper_patch.rb:4:in project_settings_tabs'
plugins/redmine_hourglass/lib/hourglass/redmine_patches/projects_helper_patch.rb:11:in project_settings_tabs_with_hourglass' plugins/redmine_webhook/lib/redmine_webhook/projects_helper_patch.rb:4:in project_settings_tabs'
app/views/projects/settings.html.erb:3:in _e9ef3e01a08edaad94e3139658a0865e'

I rename project_settings_tabs function from webhook_settings_controller.rb, but now webhooks setting dont show on project settings page.

What I can do with it?)

No permissions found for redmine_webhook

Environment:
  Redmine version                4.0.5.stable
  Ruby version                   2.5.7-p206 (2019-10-01) [x86_64-linux]
  Rails version                  5.2.3
  Environment                    production
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.12.2
  Mercurial                      4.9.1
  Cvs                            1.12.13
  Bazaar                         2.7.0
  Git                            2.23.0
  Filesystem                     
Redmine plugins:
  redmine_webhook                0.0.5

When I view /roles in administration, no permissions are seen for any role, nor in permission report, for this plugin

webhook can not work

redmine version 5.0.4.stable
download redmine_webhook code in master branch
when add new issue i get a err log in production.log

[ERROR --: uninitialized constant redmine webhook::webhook listener::faraday]

how to solve it

Need some help with webhook config in Redmine 5

Hi Suer, I need some help with webhook config in Redmine 5.
I didn't find any information, how to config Redmine to send a webhook to concrete URL. There is no information in Readme. Does the plugin work properly in Redmine 5?

Circular dependency detected while autoloading constant RedmineWebhook

After upgrading to latest redmine/svn and rails this error message appers - if i remove the Plugin, anything works as expected:

usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:492:in `load_missing_constant': Circular dependency detected while autoloading constant RedmineWebhook (RuntimeError)
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:184:in `const_missing'
    from /www/redmine/plugins/redmine_webhook/lib/redmine_webhook/projects_helper_patch.rb:2:in `'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
    from /www/redmine/plugins/redmine_webhook/lib/redmine_webhook.rb:1:in `'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:360:in `require_or_load'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:317:in `depend_on'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:233:in `require_dependency'
    from /www/redmine/plugins/redmine_webhook/init.rb:1:in `'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
    from /usr/local/lib64/ruby/gems/1.9.1/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
    from /www/redmine/lib/redmine/plugin.rb:155:in `block in load'
    from /www/redmine/lib/redmine/plugin.rb:146:in `each'

Support for HMAC-signed hook payloads

Webhook URLs are usually exposed over the internet, so a common practice in webhook modules is to provide the ability for the user to specify a shared secret (hmac key) that is used to sign the payload when sending it to the webhook URL. This authentifies the origin of the payload to its recipient.

I couldn't find anything like that in redmine_webhook unfortunately. I might work on this in the future, but still filing this feature request in case someone else has more time than I do :)

A hook for sending emails

Hi!
Is there any way (or plans) to have a hook when Redmine wants to send an email message? We want to filter them out and direct to an internal messenger. Yes, I know, this can be worked around with mail filters but it would be much more convenient to do such a thing directly...

Error in Redmine4.0.2

production.log:

Completed 200 OK in 927ms (Views: 606.6ms | ActiveRecord: 116.0ms)
Started PATCH "/redmine/issues/1" for 127.0.0.1 at 2019-12-05 14:27:46 +0800
Processing by IssuesController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"87JVACx4VpY9Hg7lMtFEsBnYipT3KM/Am1FQsh25OOmZiN9lFbsle+fys8/VVORKoZI65d4yUoQSNteXkAp/Fw==", "form_update_triggered_by"=>"", "issue"=>{"is_private"=>"0", "tracker_id"=>"1", "subject"=>"Test", "description"=>"", "status_id"=>"1", "priority_id"=>"2", "assigned_to_id"=>"", "parent_issue_id"=>"", "start_date"=>"2019-12-05", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0", "notes"=>"test", "private_notes"=>"0", "lock_version"=>"0"}, "was_default_status"=>"1", "time_entry"=>{"hours"=>"", "activity_id"=>"", "comments"=>""}, "last_journal_id"=>"", "commit"=>"Submit", "issue_position"=>"1", "issue_count"=>"1", "id"=>"1"}
  Current user: admini (id=1)
Completed 500 Internal Server Error in 238ms (ActiveRecord: 66.1ms)
  
NameError (uninitialized constant RedmineWebhook::ProjectWrapper
Did you mean?  ProjectsHelper):
  
plugins/redmine_webhook/lib/redmine_webhook/issue_wrapper.rb:24:in `to_hash'
plugins/redmine_webhook/lib/redmine_webhook/webhook_listener.rb:70:in `journal_to_json'
plugins/redmine_webhook/lib/redmine_webhook/webhook_listener.rb:31:in `controller_issues_edit_after_save'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:91:in `call_hook'
app/controllers/issues_controller.rb:565:in `block in save_issue_with_child_records'
app/controllers/issues_controller.rb:552:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:169:in `update'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Ability to passing also non-changed custom fields?

Hi, thanx for an excellet plugin.
Just a qeustion:

  • when I change something in issue, webhook i'works and changes custom fields are passed
  • values of already set, but not changed custom fields are not passed

is it somewhow possile to pass even non-changed, existit values of custom fields?

Thanx!
Maxim

URL not called if updating from context menu

The plugin works perfectly if an issue is created of modified directly. If a modification is trigger from issue list -> context menu however, the web hook is not trigger.

Redmine version: 2.6-stable

Url not called

Hello, i've just installed the plugin and i've set a call Url but when i create or update an issue nothing happens .. do you have any idea or do i have to configure another thing ?

thx

Environment:
Redmine version 2.4.2.stable
Ruby version 1.8.7-p249 (2010-01-10) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter Mysql2
SCM:
Subversion 1.7.18
Cvs 1.12.13
Git 1.7.0.4
Filesystem
Redmine plugins:
AgileDwarf 0.0.3
redmine_webhook 0.0.1
scrum2b 2.0

Limiting webhook to particular tracker

Hi Suer,

Thanks for the plugin, it works brilliantly!

At the moment, any tracker/issue will trigger the webhook and I want to limit it to specific a tracker/issue.

The question I've got would be where in the source code would I need to make the change to only trigger webhook when a tracker called "Test" is triggered.

Also, is there any way to disable webhook triggering on issue update?

Thanks.

5.0.0 Support

Upgrading from 4.2.4 to 5.0.0 causes this plugin to fail to load with a LoadError.

Hopefully this can get resolved quick. :-)

Bitnami Redmine 4.1.1.stable can't find in tab

When I install webhook in my bitnami redmine 4.1.1 . I can't find any webhook settings.
Can Webhook suppport redmine 4.1.1 version?

As beiow is my enviroment:

Environment:
Redmine version 4.1.1.stable
Ruby version 2.5.8-p224 (2020-03-31) [x64-mingw32]
Rails version 5.2.4.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Git 2.26.1
Filesystem
Redmine plugins:
redmine_dmsf 2.4.2
redmine_webhook 0.0.5

help

It's not entirely clear how to configure it. Can you explain in more detail? How does this plugin work?

Programmatic webhooks creation

I reviewed existing documentation here and didn't find any possibility to create webhooks programmatically (I mean some REST Api). Does this possibility exist ? If so - where I could find detailed info ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.