Skip to main content

Events for subitems in parent context listener

  • June 14, 2023
  • 4 replies
  • 311 views

DKostochko
Forum|alt.badge.img

Hello, there!

I was looking for a solution on how to receive events about sub-item changes in the parent context, and found this closed topic.

A small quote for a broader context

monday.listen(“events”) not quite working with subitems.
I’m sure dev team aware of it, just wanted to have some roadmap or estimation, when it will work?
Currently, there is no event when the subitem is updated. And when new subitem has been added the generated “event” is for the parent item update, with all subitems, so it’s impossible (afaik) to detect actual new subitem.

Do monday team have any updates or workarounds to solve this problem?

Best regards,
Dima

4 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • June 18, 2023

Hello there @DKostochko,

What are you trying to achieve exactly?

There is a webhook for when a column value changes in a subitem:


DKostochko
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • June 20, 2023

Hello @Matias.Monday!

A small comment to clarify.
The front end application retrieves the activity log for the main board and looks for changes for sub-items. Is it possible?

This kind of integration (webhook) was designed to integrate server applications, and in my case it doesn’t suitable.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • June 22, 2023

Hello again @DKostochko,

It is possible to retrieve the activity logs of subitems. Subitems “live” in a different board than the parent items.

You can use a query like this one to get the board ID of the subitems ID:

{
  boards(ids: 123456789) {
    items (limit: 10) {
      subitems {
	  board{
        id
        }
      }
    }
  }
}

And then you can use that board ID to query for the activity logs:

{
  boards(ids:22334455){
    activity_logs{
      event
      data
    }
  }
}

DKostochko
Forum|alt.badge.img
  • Author
  • Participating Frequently
  • August 4, 2023

Hello, @Matias.Monday!

Thank you for replay!
In some ways it looks like a solution, but it is a bit “expensive” and not very convenient to use in my case.

Best regards,
Dima