getCustomFieldDefaultValue

    h2 id="getCustomFieldDefaultValue-Signature">Signature
    Helper nodeHelper
    Signature

    There are multiple signature options:

    • 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 in 0.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)
    }