I want to send the values retrieved by JQL in Jira Cloud Automation to Slack.
How should I construct the syntax for it to work correctly?
The components are structured as follows:
[When : Reserved]
[Issue loopup]
[And : Slack message send]
{{#lookupissues}}
>{{url}}|{{key}} : {{summary}}
{{/}}
When you run the rule, no issues will be listed in Slack.
Hi @clown
As per this template your rule looks correct https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/1363405/26550780
What I would recommend is, instead of the Send Slack Message, use the Log Action, and check if the issues are printed there correctly:
{{#lookupissues}}
>{{url}}|{{key}} : {{summary}}
{{/}}
Once you're confident that the issues are being printed, you can then add the same Slack Action again.
Although I would recommend adding a IF condition after the lookup, which will check that the LookupIssues.size is more than 0 (i.e. there are issues present), only then will the next steps run. You can use this for size check {{lookupIssues.size}}
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.