Hi there,
In my automation, I want to validate a story is assigned to the right sprint, for the right team.
We have naming conventions, so:
Team LSUS1
would be sprint : FY24Q3 LSUS1 S9
....as an example
So I have built automation to use an IF for : {{issue.sprint.name.substring(7,12)}} "does not equal" LSUS1
The problem I'm hitting, is that if a story has been in multiple sprints, then I might get an array of results coming back:
In my debug I print out what that produces:
Debug: LSUS1, LSUS1, LSUS1, LSUS1, LSUS1 is not LSUS1
So a string comparison there fails.
I could switch to "does not contain", but that's problematic because if the history shows that ID just once, then the rule would not trigger.
I need to get to just "current sprint" somehow. Any clues ?