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?
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
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:
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..
||*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..
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.