Advertisement
JiraAdmin

CAMS CONFLUENCE 3

Mar 3rd, 2023 (edited)
814
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.04 KB | None | 0 0
  1. def camsconfluence = getFieldById("customfield_29809")
  2. def camsjira = getFieldById("customfield_29803")
  3. def spacename = getFieldById("customfield_29813")
  4. def projectname = getFieldById("customfield_29804")
  5. def description = getFieldByName("Description")
  6. def projectlink = getFieldById("customfield_29812")
  7. def projectkey = getFieldById("customfield_29805")
  8. def cfname = getFieldById("customfield_29814")
  9. def projecttype = getFieldById("customfield_29806")
  10.  
  11. String cfval = camsconfluence.getValue() as String
  12.  
  13. if (cfval == ("Create New Space")){
  14. spacename.setHidden(false)
  15. spacename.setRequired(true)
  16. description.setHidden(false)
  17. description.setRequired(false)
  18. projectlink.setHidden(true)
  19. projectlink.setRequired(false)
  20. projectlink.setFormValue(null)
  21. projectkey.setHidden(true)
  22. projectkey.setRequired(false)
  23. projectkey.setFormValue(null)
  24. cfname.setHidden(true)
  25. cfname.setRequired(false)
  26. projecttype.setHidden(true)
  27. projecttype.setRequired(false)
  28. projecttype.setFormValue(null)
  29. camsjira.setFormValue(null)
  30. projectname.setFormValue(null)
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement