Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Agile

Master the art of thinking big, working small: A conversation with John Cutler

Hello all! It has been 20 years since the agile manifesto was introduced, and closer to 40 years since software development began moving away from a waterfall-type approach. While many teams have ...

1,836 views 10 35
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you