Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×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:
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:
Hi Alexey,
Thanks for quick response.
I configured this through Script Runner plugin.
import com.onresolve.jira.groovy.user.FormField
FormField 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)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexey,
Thanks for quick response.
I configured that through Script runner plugin in Behaviours.
import com.onresolve.jira.groovy.user.FormField
FormField 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)
}
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.