Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy the start and end date of a sprint to a custom field

Antonio Burgos Vieyra July 5, 2023

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.

FOTO SPRINT.png

1 answer

2 votes
Trudy Claspill
Community Champion
July 5, 2023

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.

Screen Shot 2023-07-05 at 10.53.47 AM.png

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/

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events