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

Scripted field to display only if sprint is active or future sprint

Ramya Yarru March 31, 2021

Hello Team,

I use the below script to get the latest sprint but I would like to include a check which would display the value of latest sprint only if the sprint belongs to Active or Future Sprint.

ArrayList sprintList = (ArrayList)getCustomFieldValue("Sprint")
int numSprints = (sprintList != null) ? sprintList.size() : 0;

return (numSprints > 0) ? sprintList.get(numSprints - 1).getName() : ""

Please suggest on how I could achieve that.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Ravi Sagar _Sparxsys_
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.
March 31, 2021

Hi @Ramya Yarru 

Take a look at this page where you will find some idea on how to check if the sprint is active or not.

I hope it helps.

Ravi

TAGS
AUG Leaders

Atlassian Community Events