Missing_text_or_fallback_or_attachments



Fire a Slack Notification via CURL. GitHub Gist: instantly share code, notes, and snippets. 21 Webhook执行错误:挂钩成功执行,但返回HTTP 400 missingtextorfallbackorattachments; 22 看起来很奇怪的“ json”代码-如何将其转换为php / array / json? 23 如何通过style =“overflow:hidden;”隐藏body标签时切换到框架. のリクエストに失敗しました(エラー: 400)。サーバー応答の一部: missingtextorfallbackorattachments(応答の全文を見るには muteHttpExceptions オプションを使用してください)(行 15、ファイル「コード」) UrlFetchApp.fetch (url, options); 試したこと. I'm trying to send a message using Slack's chat.postMessage API call. I have no problems encoding my test messages within HTTP GET, but I'm trying to achieve the same result with JSON in a HTTP POST. サーバー応答の一部: missingtextorfallbackorattachments (応答の全文を見るには muteHttpExceptions オプションを使用してください) 該当のソースコード.

  1. Missing_text_or_fallback_or_attachments
  2. Missing_text_or_fallback_or_attachments Slack

Hi all, is it possible to use Open Project webhooks with slack to be notified every time that an issue is created/updated?

I've tried to integrate it but it din't work for me.

Thanks,

M.

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':10221,'subject':'Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/10221/attachments'},'prepareAttachment':{'href':'/api/v3/posts/10221/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/10221'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

Missing_text_or_fallback_or_attachments


Replies (9)

I would be interested in this as well.

Missing_text_or_fallback_or_attachments

Chris

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':10285,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/10285/attachments'},'prepareAttachment':{'href':'/api/v3/posts/10285/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/10285'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

With outgoing webhooks, you can define a target service that receives updates on items within OpenProject (work package creation and updates, currently). These requests are performed with a fixed payload, so hooking that to a Slack webhook endpoint would not be of much use since it needs to receive the request in a way they define in their incoming webhooks API.

It would be possible to alter the payload with an additional option in the webhook plugin not to print our own APIv3 responses, but a different kind of payload. This is however not possible at the moment.

Best,

Oliver

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':10290,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/10290/attachments'},'prepareAttachment':{'href':'/api/v3/posts/10290/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/10290'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

Hi @Oliver Günther

What is the response time or the latency time of the web hook to trigger the third party app after the event?

It looks that it is taking 15 or more minutes for the web hook to update the third-party app.

Even we tried with https://webhook.site for checking and it is delivering as batch I believe.

Could you please put some light for us to understand this latency time of web hooks triggering?

Thanks

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':11181,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/11181/attachments'},'prepareAttachment':{'href':'/api/v3/posts/11181/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/11181'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

Hi Xavier,

webhooks for work packages are emitted after the aggregation period of default 5 minutes. Every change you make in the frontend is being recorded, but only emitted if you have not made any change in the next 5 minutes to it to allow one continuous batch update. If needed, we could allow an option to the webhook to output the raw changes as they are being made.

Best,

Oliver

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':11182,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/11182/attachments'},'prepareAttachment':{'href':'/api/v3/posts/11182/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/11182'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

Hi Oliver,

Missing_text_or_fallback_or_attachments

Missing_text_or_fallback_or_attachments Slack

Thanks for the update regading Webhook function. Now we understand how it is working.

Instead of triggering the output the raw changes, can we reduce the timing to 1 minute or 2 minutes, or even giving the option to Administrator how it shall be triggered, that would be fine.

When there are several updates on work package is happening (while webhooks are integrated with slack or time tracking software to notify or create tasks there), it will bring delay at other end. To reduce this delay, your idea of sending output as raw changes or one minute delay is needed 'instead of five minutes'.

How can we set the option of sending raw output to webhook as changes made? Is this going to be a new amendment to add to OpenProject Webhooks? Please let me know.

Thanks

Missing_text_or_fallback_or_attachmentsMissing_text_or_fallback_or_attachments

-Xavier

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':11188,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/11188/attachments'},'prepareAttachment':{'href':'/api/v3/posts/11188/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/11188'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

Hi All,

Do you have any solution? It is really annoying that I cannot configure that parameter. 5 minutes is quite a long time.

Regards,
Szymon

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':12339,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/12339/attachments'},'prepareAttachment':{'href':'/api/v3/posts/12339/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/12339'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

I can not setup webhooks for slack integration on open project community 10.4.1. I receive 400 error with message: missing_text_or_fallback_or_attachments. Anyone successful with this setup?

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':12528,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/12528/attachments'},'prepareAttachment':{'href':'/api/v3/posts/12528/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/12528'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

Hi, we are also looking forward for a possible integration with slack webhooks, we've been testing this on OpenProject 10.6.2 with no success. Is it going to be supported soon ? is there any workaround ?

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':12571,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/12571/attachments'},'prepareAttachment':{'href':'/api/v3/posts/12571/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/12571'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>

Hi Tuan Anh Pham,

please find the OpenProject Slack Plugin and its documentation here: https://github.com/opf/openproject-slack#openproject-slack-plugin
You can also look at Slack's website for information: https://api.slack.com/messaging/webhooks
Please note that the Slack plugin is not officially supported.

Kind regards

Matthias

Building the best open source project collaboration software.'},'createdAt':'2012-09-21T13:37:39Z','updatedAt':'2021-04-19T10:26:48Z','status':null,'statusExplanation':{'format':'markdown','raw':null,'html':'},'_links':{'self':{'href':'/api/v3/projects/14','title':'OpenProject'},'workPackages':{'href':'/api/v3/projects/14/work_packages'},'categories':{'href':'/api/v3/projects/14/categories'},'versions':{'href':'/api/v3/projects/14/versions'},'types':{'href':'/api/v3/projects/14/types'},'schema':{'href':'/api/v3/projects/schema'},'customField105':{'href':null,'title':null},'parent':{'href':null,'title':null}}}},'_type':'Post','id':12613,'subject':'RE: Using webhooks with Slack','_links':{'attachments':{'href':'/api/v3/posts/12613/attachments'},'prepareAttachment':{'href':'/api/v3/posts/12613/attachments/prepare','method':'post'},'self':{'href':'/api/v3/posts/12613'},'project':{'href':'/api/v3/projects/14','title':'OpenProject'}}}'>