Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Iterate through Releases and send a scheduled email

Robert Newton July 2, 2024

Looking for help in a task to create a scheduled automation that iterates through each of the unreleased releases/versions, queries for the stories associated with each release, and then sends out a separate email for each release.

 

The trouble I'm running into is that there doesn't seem to be a way to iterate through releases in automation. The following JQL can be run to grab all of the stories

fixVersion in unreleasedVersions() and project = MyProject

But how does one grab the unique fixVersions from all the stories gathered here?

1 answer

1 accepted

2 votes
Answer accepted
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2024

Hey @Robert Newton - yeah I think the problem is that JQL only is capable of returning issues. So you may have to go to the Jira REST API. 

There's details on how to do this here:

And then you could hit this endpoint to get all the versions:

And (assuming you're on Cloud), you can then iterate through all of the versions using Advanced Branching.

So you should be able to iterate through {{webResponse.body}} for each {{eachVersion.id}} and do a Lookup Issues for each version and generate a notification.

Well, in theory. Give it a spin, let us know if you run into any issues.

Robert Newton July 3, 2024

@Darryl LeeThanks Darryl, this was exactly what I needed. I wasn't aware that the API existed to pull information like releases.

Like Darryl Lee likes this
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 3, 2024

Ah yeah, it's a bit tricky, but Releases are tied to Versions, so hopefully that API has what you're looking for.

https://support.atlassian.com/jira-software-cloud/docs/enable-releases-and-versions/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events