then you have to create your own validator using atlassian Connect for ondemand jira
check this
https://developer.atlassian.com/display/AC/Atlassian+Connect
hi,
Please check the link to create our own plugin:
https://developer.atlassian.com/display/DOCS/Set+up+the+Atlassian+Plugin+SDK+and+Build+a+Project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can configure field required validator from JSU Plugin which is preinstalled on ondemand jira
check abt validator
check this doc for more information on configuration of validator
if you want field required on create screen then you can make it required in the field configuration for the issue type/project
check this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
got to administartion page
select Issues ---->workflows
select the workflow on which you want to do validation
click on edit option on right side of the workflow(it will create draft workflow)
click on new/open step name
click on create step
then click on validators tab
click on add link which is under validator tab
select the field required validator radio button then it will display the window and you need to choose the field which you need to validate
once it is completed then publish draft
Note:all the above steps are valid if you oopen workflow as in text mode
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasad,
I need to validate the text in the text box field using regex.for eg the mobile number field must be contains only the 10 digit. if we are giving less than 10 digit, it will show the message like "Reqiuired 10 digit". Any thing possible like that in onDemand JIRA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
which form?
Is it workflow transition form, editing issue form, or any other form?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In create issue form, i want to add the form validation in Ondemand JIRA?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
import java.util.regex.Pattern; import com.opensymphony.workflow.InvalidInputException; import com.atlassian.jira.component.ComponentAccessor; import com.atlassian.jira.issue.CustomFieldManager; InvalidInputException e=new InvalidInputException(); ComponentAccessor comAcc =new ComponentAccessor(); CustomFieldManager cfm = comAcc.getCustomFieldManager(); Object PhoneNumber = issue.getCustomFieldValue(cfm.getCustomFieldObjectByName("Phone Number")); Pattern.matches("{your phone number regular expression}",PhoneNumber.toString()) == false) { e.addError(cfm.getCustomFieldObjectByName("Phone Number").getId(),"Phone number should be 10 digits" }
The below link show how to add regular expression for 10 digit phone number
http://www.w3resource.com/javascript/form/phone-no-validation.php
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!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.