I want to create automation where I can trigger new release from webhook. Example of webhook:
curl -X POST -H 'Content-type: application/json' --data '{"issues":["TV3-1", "TV3-2", "TV3-3"], "version": "Release 1", "projectName": "TV3"}' https://automation.atlassian.com/pro/hooks/9952e279d84638f10a55c850ba46ccebf35bb6fc
If I set more than 1 issue in data I get the following warning
How can I make sure the release is only created once but than all tickets I specify are added to this release?
hey @Luka Nikolic ,
Welcome to the community!
If I interpret your rule correctly, in the trigger, you checked the "Execute this automation rule with: Issues provided in the webhook HTTP POST body"?
In that case, the rule will loop over all the issues for all following conditions and actions, so it will try to create the version 3 times.
Luckily, you can change that!
It seems you are already familiar with json smart values, so I wont go into that detail.
You simply check the last radiobutton ("No issues from the webhook"), then the rule will not start looping automatically.
You can create the new version the same way you already did, and then use a smart value branch, looping over the issues in your webhookData yourself, and then add the version to each.
If you can't get it to work, let us know what you tried and we will help debug!
Cheers,
Tessa
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.