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,365,748
Community Members
 
Community Events
168
Community Groups

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

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

0 votes

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events