I have an issue where I'm trying to set up an automation that whenever an Issue is assigned a Version, I go out and update the Pull Requests base branch. I am able to successfully fetch all of the PR's for the Issue, but when there are multiple PR's, I only want to update the `OPEN` Pull Request.
As of right now, my flow is this:
When Fix Version is Changed -> Log Information -> Send Web Request to get Pull Requests [WAIT FOR RESPONSE] -> Create Smart Variables for status -> For Each web response, do stuff.
Here's the `do stuff` part:
Here are my log entries:
Now, maybe I'm missing something with Pull Requests, and there's an easier way to get this done. I would love to hear any feedback. Thank you so much!
I actually figured this out. Instead of doing the `For Each`, I ended up going through each pull request, checking it's status, and setting my value there.
{{#webResponse.body.detail}}
{{#pullRequests}}
if(equals(status,"OPEN"),id.replaceAll("[#]",""))
{{/}}
{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.