Forums

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

Complex validator in Jira cloud

Tal Levi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 17, 2018

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 ?

2 answers

2 votes
Oliver Siebenmarck _Polymetis Apps_
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.
July 1, 2019

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.

0 votes
Kristian Walker _Adaptavist_
Community Champion
December 18, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events