Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

validator during transition sprint state is 'ACTIVE'

Hadas Hamerovv
Contributor
September 17, 2021

I wish to add a validator with jira expression. Want to make sure the issue is in an active sprint.

I was trying sprint.state == 'ACTIVE' but it does not work.
Does anyone can help with the correct syntax.

I am using ScriptRunner to have this validator in the transition.

1 answer

1 accepted

3 votes
Answer accepted
Ivan Lima
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2021

Hi @Hadas Hamerovv, in this case, you should use the following:

issue.sprint.state == 'active'

Have a look at Example validators (ScriptRunner) to learn more about how you can use validators.

I hope that helps.

Hadas Hamerovv
Contributor
September 18, 2021

Yap. That worked. 

Like Ivan Lima likes this

Suggest an answer

Log in or Sign up to answer