How to get current sprint from Agile? Follow
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:
```
var agiles = entities.Agile.findByName('MP Scrum');
var sprint = agiles.first().findSprintByName('{Current Sprint}');
```
I tried also with findSprintByName('Current Sprint');
Please sign in to leave a comment.
Hello,
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.
Thanks :)