Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def camsrequest = getFieldById("customfield_29800")
- def affectedsystem = getFieldById("customfield_29801")
- def camsconfluence = getFieldById("customfield_29809")
- def camsjira = getFieldById("customfield_29803")
- def cfname = getFieldById("customfield_29814")
- def description = getFieldByName("Description")
- def spacename = getFieldById("customfield_29813")
- def projectspacelink = getFieldById("customfield_29802")
- def projectkey = getFieldById("customfield_29805")
- def projectlink = getFieldById("customfield_29812")
- def projectname = getFieldById("customfield_29804")
- def projectlead = getFieldById("customfield_29807")
- def projecttype = getFieldById("customfield_29806")
- String cfval = camsrequest.getValue() as String
- if(cfval == ("Report a problem")){
- affectedsystem.setRequired(true)
- affectedsystem.setHidden(false)
- affectedsystem.setFormValue(null)
- camsconfluence.setHidden(true)
- camsconfluence.setRequired(false)
- camsjira.setHidden(true)
- camsjira.setRequired(false)
- cfname.setHidden(true)
- cfname.setRequired(false)
- description.setRequired(true)
- description.setHidden(false)
- spacename.setHidden(true)
- spacename.setRequired(false)
- projectspacelink.setRequired(true)
- projectspacelink.setHidden(false)
- projectspacelink.setFormValue(null)
- projectkey.setHidden(true)
- projectkey.setRequired(false)
- projectlink.setHidden(true)
- projectlink.setRequired(false)
- projectname.setHidden(true)
- projectname.setRequired(false)
- projectlead.setHidden(true)
- projectlead.setRequired(false)
- projecttype.setHidden(true)
- projecttype.setRequired(false)
- }
- if (cfval == ("Jira")){
- affectedsystem.setRequired(false)
- affectedsystem.setHidden(true)
- affectedsystem.setFormValue(null)
- camsconfluence.setHidden(true)
- camsconfluence.setRequired(false)
- camsjira.setHidden(false)
- camsjira.setRequired(true)
- camsjira.setFormValue(null)
- cfname.setHidden(true)
- cfname.setRequired(false)
- description.setRequired(false)
- description.setHidden(true)
- spacename.setHidden(true)
- spacename.setRequired(false)
- projectspacelink.setRequired(false)
- projectspacelink.setHidden(true)
- projectkey.setHidden(true)
- projectkey.setRequired(false)
- projectlink.setHidden(true)
- projectlink.setRequired(false)
- projectname.setHidden(true)
- projectname.setRequired(false)
- projectlead.setHidden(true)
- projectlead.setRequired(false)
- projecttype.setHidden(true)
- projecttype.setRequired(false)
- }
- if (cfval == ("Confluence")){
- affectedsystem.setRequired(false)
- affectedsystem.setHidden(true)
- affectedsystem.setFormValue(null)
- camsconfluence.setHidden(false)
- camsconfluence.setRequired(true)
- camsconfluence.setFormValue(null)
- camsjira.setHidden(true)
- camsjira.setRequired(false)
- cfname.setHidden(true)
- cfname.setRequired(false)
- description.setRequired(false)
- description.setHidden(true)
- spacename.setHidden(true)
- spacename.setRequired(false)
- projectspacelink.setRequired(false)
- projectspacelink.setHidden(true)
- projectkey.setHidden(true)
- projectkey.setRequired(false)
- projectlink.setHidden(true)
- projectlink.setRequired(false)
- projectname.setHidden(true)
- projectname.setRequired(false)
- projectlead.setHidden(true)
- projectlead.setRequired(false)
- projecttype.setHidden(true)
- projecttype.setRequired(false)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement