I have two fields on create screen PPM# and Summary Task#. So the configuration should be as follows.
Hello,
You would need an add-on for it.
For example, you can 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 Live Field to follow your logic. You can read more about Live Fields here:
https://confluence.cprime.io/display/JJUPIN/Live+Fields
You can find an example on how to work with Live Fields here:
https://confluence.cprime.io/display/TR/Field+Manipulation
Hi Alexey,
Thanks for quick response.
I configured this through Script Runner plugin.
import com.onresolve.jira.groovy.user.FormFieldFormField ppmField = getFieldById("customfield_10100")FormField summaryTask = getFieldById("customfield_10101")FormField projectName = getFieldById("customfield_10019")FormField projectDescription = getFieldById("customfield_10018")if(ppmField.getValue() > "0" && summaryTask.getValue() > "0"){projectName.setHidden(false)projectDescription.setHidden(false)projectName.setRequired(true)projectDescription.setRequired(true)}else if (ppmField.getValue() > "0"){projectName.setHidden(false)projectDescription.setHidden(false)projectName.setRequired(true)projectDescription.setRequired(true) }else{projectName.setHidden(true)projectDescription.setHidden(true)projectName.setRequired(false)projectDescription.setRequired(false)}
I configured that through Script runner plugin in Behaviours.
It looks like you're new here. Sign in or register to get started.