Forums

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

In Jira, I want to validate at lease one field is required on create screen

jingjing October 10, 2018

On create issue screen, the required fields relationship is "and",all required field is must filled,but i want to at lease one filed is required,instead of all .i want the relationship between the required fields is “or”

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
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.
October 10, 2018

Hello,

Are you on Cloud or Server?

jingjing October 10, 2018

server

Alexey Matveev
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.
October 10, 2018

Hello,

You need an add-on for it. For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could write a validator like this:

if (!isNotNull(#{your cusotm field name1}) || !isNotNull(#{your cusotm field name2}) ) {
 return true;
}
return false, "Fill out one of the following fields: your cusotm field name1, your cusotm field name2 ";

 You can find more info about validators here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Writingvalidators,postfunctions,andconditions

jingjing October 11, 2018

Can it be implemented through scriptrunner plugin? because i have purchased.

thank you!

Alexey Matveev
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.
October 11, 2018

Yes, it can be implemented, but I do not have a ready-made script.

jingjing October 11, 2018

Thank you  for your support. I will learn how to implement by scriptrunner. if you have answer ,please notice me.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events