Skip to main content

Pull array of available status options

  • March 3, 2020
  • 3 replies
  • 1303 views

  • Participating Frequently

Hello!

I’m trying to query a specific status column on a board so that I can pull in it’s available status choices for a custom form. Is the columns {settings_str} the only way to do this? this is the format I get back:

labels: {0: “Status 1”, 1: “Status 2”, 5: “Status 3”}

My hope was to get an array back that would be easier to iterate through. Is the above format my only option or is there a better way to query what I’m looking for? any help would be greatly appreciated!

This topic has been closed for replies.

3 replies

dipro
Forum|alt.badge.img
  • Leader
  • March 11, 2020

Hey Mike!

Yes, at the moment that’s the way the status settings are formatted.

If I wanted to iterate through this, I’d use something like the Object.keys() method in Javascript, or the dict.keys() method in Python. Both approaches let you take a hash table and turn in to an iterable 🙂

What do you think?


  • Author
  • Participating Frequently
  • March 12, 2020

Hi Dipro!

That will work! Thank you very much! I just wanted to make sure that this was the best way to query that information.


  • February 25, 2021

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