Hello,
We would like to set "Preliminary Estimate" field is required when we select "Epic Type" field as 'Product Innovation' (in drop down options, we have other value as Product Improvement).
To achieve this we are trying to use behaviour function and used below script and it's working fine during issue creation level.
const preliminaryEstimateField = getFieldById("customfield_10107");
const epicTypeField = getFieldById("customfield_12161");
if (epicTypeField.getValue().name == "Product Innovation") {
preliminaryEstimateField.setRequired(true);
} else {
preliminaryEstimateField.setRequired(false);
};
However, While creating issue I can choose 'Epic Type' as 'Product Improvement' so that I can skip Preliminary Estimate Field. After that I can open issue and Change the 'Epic Type' to 'Product Innovation' and here it's not asking to fill 'Preliminary Estimate' Filed as required. but we are expecting it must ask to fill 'Preliminary Estimate' field (during edit issue level also)
The above script is working fine during issue creation level but it's not performing during edit issue level.
Could someone help on this issue.
Note: " We are using Jira Cloud not Jira Server, Behaviour feature is now available for Jira cloud "
Thank you
Balaji