Confluence has been updated to version 6.15.9

Back to  nodeHelper

Signature
 

HelpernodeHelper
Signature
getCustomFieldDefaultValue(String name, IHubIssueType type, IHubProject project)
getCustomFieldDefaultValue(Long id, IHubIssueType type, IHubProject project)getCustomFieldDefaultValue(String name, IHubIssue issue)getCustomFieldDefaultValue(Long id, IHubIssue issue)
Description


Returns the default value of the customfield

Introduced in0.9.1

Example use 

issue.project   = nodeHelper.getProject("Staff")
issue.issueType = nodeHelper.getIssueType("Hobby")
 
if (replica.customKey.mood == null) {
   issue.customFields.mood.value = nodeHelper.getCustomFieldDefaultValue("mood", issue.issueType, issue.project)
} 


See Also



 


Back to  nodeHelper