How to get current sprint from Agile?

I'm trying to get Current Sprint from Agile
In search box I can write "Board MP Scrum: {Current Sprint}" 
How to get it in workflow, because this not work:
agiles = entities.Agile.findByName('MP Scrum');
var sprint = agiles.first().findSprintByName('{Current Sprint}');
I tried also with  findSprintByName('Current Sprint');

Comment actions Permalink
Official comment


I am afraid, the workflow does not have a method for getting the current sprint. For this, I suggest you iterate through sprints and check their start and finish properties. I hope it will be helpful. Should you have any further questions, feel free to contact us.

Please sign in to leave a comment.