Skip to main content

Get SubItem values through API

  • March 11, 2021
  • 5 replies
  • 2286 views

Hi.

I need to gel all subitem values for the specific board.

My steps:

  1. Getting board (id 1087268631) items and looking for sub-items.

So, ids for sub items are [1087268826, 1087268835, 1087300566, 1087301038]

  1. Getting sub items values by ids [1087268826, 1087268835, 1087300566, 1087301038]

  1. As result I see no items. What am I doing wrong?
This topic has been closed for replies.

5 replies

AlexSavchuk
Forum|alt.badge.img
  • monday.com Team Member
  • March 11, 2021

Hey @Igor_Tretiakov 👋

That’s quite odd. I’ve just tested this on my end, and was able to get the results without issues. Perhaps it might makes sense to skip the “boards” part of the query altogether, and query for the item IDs directly, like below?

query {
  items (ids:[1122852137, 1122852134, 1122852086] ){
    name
    id
    group {
      id
      title
    }
    column_values {
      value
      text
      id
      type
    }
  }
}

Here is a sample result that this provides for me when querying subitems:

I hope this helps at all 🙂

-Alex


  • Author
  • Participating Frequently
  • March 11, 2021

Thank you for your help.

That’s quite odd.

I agree with that. It worked with “boards” part 2 days ago.

Now I have to remove it.


AlexSavchuk
Forum|alt.badge.img
  • monday.com Team Member
  • March 11, 2021

@Igor_Tretiakov

Thank you for following up on this!

From my point of view, I do see the “boards” part as somewhat redundant in this case, as it doesn’t provide any kind of output in terms of your values. Please let me know if the solutoin proivded abov works well for you - I’d love to confirm 🙂

-Alex


  • Author
  • Participating Frequently
  • March 12, 2021

Yes, it works!!

Thanks!


  • March 19, 2021

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.