Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def camsjira = getFieldById("customfield_29803")
- def projectname = getFieldById("customfield_29804")
- def projectlink = getFieldById("customfield_29812")
- def projectkey = getFieldById("customfield_29805")
- def projecttype = getFieldById("customfield_29806")
- def projectlead = getFieldById("customfield_29807")
- def description = getFieldByName("Description")
- def cfname = getFieldById("customfield_29814")
- String cfval = camsjira.getValue() as String
- if (cfval == ("Create New Project")){
- projectname.setHidden(false)
- projectname.setRequired(true)
- projectname.setFormValue(null)
- projectlink.setHidden(true)
- projectlink.setRequired(false)
- projectkey.setHidden(false)
- projectkey.setRequired(true)
- projectkey.setFormValue(null)
- projectlead.setHidden(false)
- projectlead.setRequired(true)
- projectlead.setFormValue(null)
- description.setHidden(false)
- description.setRequired(false)
- projecttype.setHidden(false)
- projecttype.setRequired(true)
- projecttype.setFormValue(null)
- cfname.setHidden(true)
- cfname.setRequired(false)
- }
- if (cfval == ("Project Modification")){
- projectname.setHidden(true)
- projectname.setRequired(false)
- projectlink.setHidden(false)
- projectlink.setRequired(true)
- projectlink.setFormValue(null)
- projectkey.setHidden(true)
- projectkey.setRequired(false)
- projectlead.setHidden(true)
- projectlead.setRequired(false)
- description.setHidden(false)
- description.setRequired(true)
- projecttype.setHidden(true)
- cfname.setHidden(true)
- cfname.setRequired(false)
- }
- if (cfval == ("Custom Field Creation")){
- projectname.setHidden(true)
- projectname.setRequired(false)
- projectlink.setHidden(false)
- projectlink.setRequired(true)
- projectkey.setHidden(true)
- projectkey.setRequired(false)
- projectlead.setHidden(true)
- projectlead.setRequired(false)
- description.setHidden(false)
- description.setRequired(false)
- projecttype.setHidden(true)
- projecttype.setHidden(true)
- cfname.setHidden(false)
- cfname.setRequired(true)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement