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.
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
Recommended Learning For You
Level up your skills with Atlassian learning
Jira Align Program Essentials
Learn how to use Jira Align at the program level and how to plan for and manage your Program Increment (PI).
Managing Agile Boards and Reports
Learn how to pick the right board type for your team and customize it to fit your specific requirements.
Atlassian Certified Associate
Jira Software Board Configuration
Earn an associate-level credential from Atlassian that shows you can effectively configure Jira Software boards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.