Forums

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

Can I ensure that three custom fields are unique with a validator?

Matthew Hauer August 23, 2018

At a point in the workflow, I am assigning three approvers (single user pickers) to a story.

This approvers are different types; custom fields exist for 'business approver', 'manager approver', 'IT approver'.

 

Is there some way I can ensure that these three approvers are three different people? I don't want to create separate groups because in theory, any user could be any of the three.

1 answer

1 accepted

0 votes
Answer accepted
Krishnanand Nayak
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.
August 23, 2018

You will need to use scripted validator to do this validation. We are doing a smilimar this and using Scriptrunner plugin.

There are other plugins too that could help you write a script. 

Matthew Hauer August 23, 2018

Can I do it in cloud? Do you have any of the script statements you could share?

Krishnanand Nayak
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.
August 23, 2018

the plugin we are using is available for cloud.  here are some examples 

https://scriptrunner.adaptavist.com/latest/jira/recipes/workflow/validators/simple-scripted-validators.html

Nic Brough -Adaptavist-
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.
August 23, 2018

Whilst there is a ScriptRunner for Cloud, it can not provide validators, as the Cloud Connect framework does not (yet) support them.

There is no way to do this on Cloud as far as I can work out.  You really do need a validator, but there's no way to write one. 

The best you could do is write a post-function that adds some data to an issue to scream "this issue has duff information"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events