Hello there,
I am trying to create a Jira automation that send a slack message that contains the sprint goals for two teams.
Initially i had this structure:
When
- scheduled (every 2 weeks)
- JQL: project = Understand and Sprint in openSprints()
Create variable
- Smart issue: sprintgoal = {{#issue.customfield_10015}} {{#if(equals (state, "active")) }} {{goal}} {{/}} {{/}}
- (our sprint goal field is linked to customfield_10015)
Slack message
However, I noticed that it would send 20 + message for each issue that matches that JQL. I then tried to set an if statement checking a smart value "done" has a value, but it still sends the message 20 times.

Do you have an idea to pull the Sprint goal for only the first issue in the JQL list?
thanks !