Hi,
I'm trying to do the following validation :
Customer field (Fixed version) must be field upon doing a certain transition, Unless the component/s equals to TeamA or TeamB.
* Tried combining multiple validators with OR, but it seems that I can't select the component field on RegExp validation (since Component/s is not a custom field)
* Tried with ScriptRunner but I see that it can't script validators in Jira cloud
is there another solution I can try for that flow ?
Hi Tal,
In case you are still looking for a way to have complex custom validators in Jira Cloud, there now is an app that enables this. It's called Cloud Workflows and allows you to use Jira Expression to create your validators. If I understand your use case correctly, it can easily be done in a Jira Expression like this:
issue.fixVersions != []
||
issue.components
.filter(c => c.name == "TeamA" || c.name == "TeamB")
.length > 0
The app is available here: https://marketplace.atlassian.com/apps/1220407/cloud-workflows
Let me know if you need any help getting started.
Full disclosure: I work for the Vendor who created this app.
Hi Tal,
Thank you for your question.
I can confirm that the ScriptRunner for JIRA Cloud plugin is unable to perform any dynamic validation on issue forms.
The reason we are unable to provide this functionality is due to the restricted functionality and API's which Atlassian provide inside JIRA Cloud, due to the fact that Atlassian only provides a Rest API in Jira Cloud and not the same Java API that the server version contains.
You can also see more details on the differences between the cloud and server versions of the add-on in the documentation page located here.
If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.