I want to copy these two dates into fields within the incidents, in order to make a report. I have already validated all the incident fields in the report, but that data does not appear.
Hello @Antonio Burgos Vieyra
An issue can end up assigned to multiple sprints - it might be assigned to Sprint 1, not completed during that sprint, then assigned to Sprint 2, and so on.
Which sprint's dates do you want to store in the issue?
If it ends up assigned to another sprint do you want to overwrite what was stored previously?
What if it is not completed in Sprint 1 and is put into the backlog rather than the next sprint? Do you want the fields blanked out?
You could create an Automation Rule that uses the Sprint Completed trigger. After triggering the rule you can use the Branch action to retrieve the issues in that sprint. In the Branch you can then use an Edit action to edit each issue in the sprint and fill in the date/time fields with the smart values {{sprint.startdate}} and {{sprint.enddate}}. I used the Log action to print the values rather than actually editing an issue.
If you are using Date Only fields (not date/time) you are going to need to format the above smart values so that only the date portion will be assigned to your fields. For more information on formatting date/time fields refer to this:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.