Hi Atlassian experts π
I'm exploring the capabilities of Jira Automation and have a question:
Letβs say we want to retrieve all users belonging to a specific group using the Send web request action.
Once we get the API response, can we then loop through each user and perform additional actions (e.g., calling another API per user) β
all within a single automation rule, without having to trigger another rule via webhook?
I'd love to hear from others who have tried similar setups β is it feasible using advanced branching and smart values alone?
Any insights or creative solutions are very welcome! π
Hi @AtlaBeacon -- Welcome to the Atlassian Community!
Simple, short answer: yes, that is possible using an Advanced Branch over the initial web response values, and...
Kind regards,
Bill
Hi @Bill Sheboy ,
Thank you for response!
Can you please give me more details on how you say this is possible?
-------------
I'll explain specifically what I'm trying now.
Execute the following API in JiraAutomation.
When you run it, you will of course get a response in Smart Value.
{{webhookResponse.body}}
The data I want to use is the following, as described in the response in the official documentation.
"values": [ { "accountId": "5b10a2844c20165700ede21g", "accountType": "atlassian", "active": true, "avatarUrls": {}, "displayName": "Mia", "emailAddress": "mia@example.com", "key": "", "name": "", "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g", "timeZone": "Australia/Sydney" }, { "accountId": "5b10a0effa615349cb016cd8", "accountType": "atlassian", "active": false, "avatarUrls": {}, "displayName": "Will", "emailAddress": "will@example.com", "key": "", "name": "", "self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a0effa615349cb016cd8", "timeZone": "Australia/Sydney" } ]
I want to loop through only this account ID.
In that case, what kind of Advanced Branch rule configuration is needed?
Thank you for your support.
Regards,
AtlaBeacon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First thing: successfully using automation rules requires learning and experimentation.
I recommend trying things, and if you run into challenges, post images of your rule, the audit log details, and explain what is not working as expected. This will increase the chances the community can help you be successful.
For the endpoint you note, you saw what is returned, including how a values list containing the attribute accountId.
In the rule after the Send Web Request action to call the endpoint, you could iterate over the list values like this with an Advanced Branch. This is quite similar to what is shown in the documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.