What payload does the "Sprint completed" automation include?

Ronny-André Bendiksen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 10, 2024

I want to run an automation when sprint is completed to dump all issue data for that specific sprint.

What data is available in the payload, and what format is the request body?

2 answers

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2024

Hi @Ronny-André Bendiksen -- Welcome to the Atlassian Community!

With the Sprint Completed trigger, only the {{sprint}} smart value and its attributes are provided: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/#--sprint--

With that, you may use JQL with the Lookup Issues action to gather the issues in the sprint: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues

Kind regards,
Bill

0 votes
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2024

Hello @Ronny-André Bendiksen 

 

What do you mean dump data? Do you want to send email with list of issues?

When you use that trigger, you get access to sprint ID using smart value {{sprint.id}}

So if you want issue data, you can do a lookupIssues and get all issues from sprint. Then you have the data for all issues.

Your steps:

  • Trigger = Sprint Completed
  • Action = lookupIssues =>JQL = sprint = {{sprint.id}}

Then {{lookupIssues}} has all the info. You can iterate over the list and print out what ever you want.. Lets say, instead of email you want to put a comment in Parent..

  • Next, You can branch on Parent and,
  • edit issue like below.. (for example):

||*Key*||||*Summary*||||*Reporter*||||*CustomField*||||*CreatedDate*||
{{#lookupIssues}}
|{{key}}|{{summary}}|{{reporter}}|{{customfield_12323}}|{{created.jiraDate}}|
{{/}}

So yes, you have access to all the data like shown above. Let us know if any clarifications..

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events