[go: up one dir, main page]

Skip to content

Work item webhook payload does not contain item type

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

The payload for work item webhooks that are not issues do not contain the work item type. Per the documentation:

For issues and Service Desk issues, the object_kind is issue, and the type is Issue. For all other work items, the object_kind field is work_item, and the type is the work item type.

There is no type field in the payload, which I assume should be event_type. The actual behavior is that both object_kind and event_type are "work_item". The following is seen in work item webhooks for both epics and tasks:

{
  "object_kind": "work_item",
  "event_type": "work_item",
  ...
}

For issues, the behavior does match the documentation.

Steps to reproduce

Create a webhook for "Issue events" and create/modify an issue task or an epic.

Example Project

This has been seen in numerous cases, but here is an example project and group that exhibit the behavior with "Issue events" webhooks.

What is the current bug behavior?

The event_type field does not identify the work item type for non-issue work items, it is always "work_item".

What is the expected correct behavior?

The event_type field should be populate with the work item type, per the docs.

Output of checks

This bug happens on GitLab.com

Edited by 🤖 GitLab Bot 🤖