Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi,
We have a requirement to turn a field mandatory on the basis of result of comparison of two other fields. I am trying to use behaviours plugin for it but not able to succeed. I need some help to understand this plugin more.
Also, I can not see Validate JIRA Requiredness in general settings as mentioned
I have enabled the logging but how can I see the logs?
Regards
Sandeep
Thanks, Nuwan.
I thought you forgot me.
I will try this solution today and get back with results.
Regards
Sandeep
try with this server side script
FormField sprint = getFieldByName("Sprint")
FormField fixedVersion= getFieldByName("Fixed Version")
FormField delivery = getFieldByName("Delivery Date")
String sprintValue = (String) sprint.getValue()
String fixedVersionValue = (String) fixedVersion.getValue()
if(sprintValue=fixedVersionValue)
{
delivery.setRequired(true)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nuwan,
So this is what I need:
We have a field called delivery date (date type) which is optional.
Other two fields are
Fixed Version (single choice list type) and Sprints (single choice list type).
Our requirement is that if the value chosen in fixed version is included in the list of Sprints then the delivery date should become mandatory.
Thanks
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
add more info about what kind of comparison you needed.what are the fields you going to compare and what kind of field you going to make mandatory
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.