Forums

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

how to setup due date with the sprint

Cesar Daldosso September 24, 2021

just use dueDate on the field when trasncdue date jira.pnguse this field.

{{sprint.endDate.jiradate}}

Unfortunatelly my issue is not solved because when an issue overflows from one sprint to another the date which gets is from the first sprint, not the last one 

2 answers

1 accepted

0 votes
Answer accepted
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.
September 29, 2021

Hi @Cesar Daldosso 

To get the latest end date for any sprints for an issue, please try this:

{{issue.sprint.endDate.max}}

As the sprint field is a list, the max() function will return the value you want.

Please note: In your rule, the sprint field could be cleared and trigger the rule, and so this would lead to old values being used for the sprint to set your due date.  The work-around for this is for you to use an if/else condition to handle the change to empty.  You will need to decide what to set the due date to in that case.

Kind regards,
Bill

Cesar Daldosso September 29, 2021

Bill, amazing, I did a reply here but I was wrong, your function worked perfectly !!!

Like Bill Sheboy likes this
0 votes
Piotr Zadrożny _Eyzee_
Community Champion
September 24, 2021

Hi @Cesar Daldosso 

Try using this smart value: {{sprint.last.endDate.jiradate}}

{{sprint}} returns the list of sprints so if you just use {{sprint.endDate.jiradate}} it will return date of the first element on the list. 

Kind regards,

Piotr

Cesar Daldosso September 29, 2021

Thanks a lot  for your effort but it returns the date of the last sprint completed where this issue was.

So before , with sprint.end.Date.jiradate, my result in the case bellow was Dec 18, 2020 and now is Dec 11, 2020

sprint.png

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