Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,553,467
Community Members
 
Community Events
184
Community Groups

How do you set a Sprint Formula Column that shows incomplete issues in Backlog?

I have a structure that I export, and I need the sprint column to show the latest sprint, but if an issue was incomplete and wasn't assign to an open or future sprint, it will appear as text "Backlog".

For example, if I have issue ABC-123 that was In Progress and assigned to an open Sprint 2, it will show "Sprint 2". If ABC-123 was Done, then the sprint column will read as "Sprint 2". Then, I have ABC-456 also In Progress, but its last sprint was in a closed Sprint 1, so it will instead show "Backlog".

I tried using this Expr formula, but I can't seem to find the variable to get closedSprints:

IF(sprint = undefined or (statueCategory != Done AND sprint = closedSprint); "Backlog") or LAST(sprint.name)

I was hoping there was a way in formula that I don't have to update the sprint names or the Jira-generated sprint id number. How do I set the structure formula to achieve this?

1 answer

1 accepted

1 vote
Answer accepted
David Niro _Tempo_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 23, 2023

Hello @Diana Gorv ,

Something like this may work for you:

with _assigned = sprint.FILTER($.state = "active" OR $.state = "future"):

IF statuscategory != "DONE" AND _assigned.SIZE() > 0:
_assigned.LAST()

ELSE:
"Backlog"

It uses FILTER() to reduce the array of sprints to only those that are in an active or future state.  But we store it as a local variable for efficiency, since we use it more than once.

Next, an IF conditional function identifies the issues that are not Done and SIZE(), another array function, to identify if the new Array is > 0.  If it meets these criteria, it returns the LAST() sprint it was assigned to, and if it does not, it returns "backlog".

Please let me know if it helps!

Best,
David

@David Niro _Tempo_ Thanks for the quick response!

It's close, but now it looks like all Done issues appear as "Backlog". Can the formula use ELIF statements too? something like"

IF statuscategory != "DONE" AND _assigned.SIZE() > 0:
_assigned.LAST()

ELIF statuscategory = "DONE":
LAST(sprint.name)

ELSE:
"Backlog"

I do see incompleted issues from previous sprints will show up as "Backlog", yay! 

I just need to get the complete issues get credit in their last sprint. 

David Niro _Tempo_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 23, 2023

Hi @Diana Gorv ,

Sorry about that!  

Yes, but it is ELSE IF

ELSE IF statuscategory = "DONE":
LAST(sprint.name)

@David Niro _Tempo_ You the man! It works! Thanks!!

Suggest an answer

Log in or Sign up to answer