Hello!
I've got an automation from Jira.
The intention is that every time a deployment happens, the list of issues from the deployment get put into a slack message, and then sent to a slack channel.
What is currently happening is: we get N messages, with N issues in each message. If we've released 10 items in the release, we get 10 messages with all 10 issues listed in each.
What am I missing?
Apologies that you've run into this, we really need to rename these actions as it is a bit deceptive. They should be called issue deployed successfully. The trigger runs once for each issue in a deployment.
This is why you are seeing this behaviour.
Cheers,
Simeon.
Hi @Simmo
Thanks for the information! From that trigger's smart values, it is possible to detect for which issue the rule is running? https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/
If so, @Quinn Moffat could:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Bill Sheboy,
I like it, thats some fancy thinking! I think so. {{issue}} should still work I believe so you can get the issue key that way!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy I've given this a go:
I couldn't get the key within the conditional for whatever reason, so I've used the description field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nice! I am wondering why {{issue.key}} was not available for the comparison.
Got any ideas, @Simmo ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy not in this case I'm afraid. It should be available or the rule would have errored. Would probably have to work backwards and start by adding a log component for {{issue}} and see what that gives, then go from there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Quinn Moffat -- Welcome to the Atlassian Community!
Your rule seems to match the same use case shown here for this trigger: https://community.atlassian.com/t5/Automation-articles/New-Build-and-Deploy-triggers-for-Jira-automation/ba-p/1442789
When you look at the audit log, does it show the rule being triggered multiple times for the same deploy?
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Bill! Correct. One deploy = N iterations,
where N is number of issues deployed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.