I want to create a shortcut that checks a web API (GitLab) for issues assigned to me, let’s me pick one, and then does a few things from that selection, like start a Toggl timer, set my Slack status, and opens the website for that issue.
I’m currently stuck at a fairly basic early step and am hoping someone here can give me guidance:
The API returns a list of dictionaries, each with different keys in there that I’ll need, like name, issue number and a URL. How do I pick an item from that list? If I just pass that list to a “Choose from List” option, they all just say “Dictionary”. If I first iterate over the list and extract the name, then they say the proper name, but how do I them get the related dictionary, so that I can get the ID and URL? “Choose from List” just returns the name as the output, but not the index.
Am I missing something? Or do I need to again iterate over all items in the list and then check each for the name? I was hoping there’s a simpler way.
Any help or examples appreciated!