I am trying to add a validator in a transition to check whether the issue is linked to an active sprint.
I can't find how to do it. I have even looked into "ScriptRunner" option but the documentation does not look enough to perform this task.
Does anybody how to do it?
hank you for your question.
I can confirm that validators in ScriptRunner for Jira Cloud use the Jira Expression Framework as described in the Atlassian documentation here which means you cannot write normal groovy code to write the validator expression.
We have created the Knowledge Base article located here which explains in more detail how validators work and how to check the syntax required to write them and you will be able to use this as a reference guide to help you create the validator that you require.
I can also confirm that we have collated some example validators here and one of the examples shows how to only allow an issue to be transitioned when the issue being transitioned is in an active sprint and this will be a useful reference to help you to create the validator expression which you require.
I hope this information helps.
I can confirm that Conditions and Validators are development features inside of ScriptRunner for Jira Cloud currently which means we are still working on the full set of features for them.
This means that we will have documentation coming out for these shortly and plan to add the ability to test expressions in future.
In the meantime, we would advise reading the Atlassian documentation on the Jira Expression Framework which we have linked to above in order to help you to see how validators can be created.
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