Watchers Structure


    Objectwatchers
    Fields

    The list of users watching the issue

    Introduced in0.5


    Fields

    #Field nameCommentObject type
    1watchers
    An array of users

    Example

    # Add project lead as watcher 
     
    issue.watchers += issue.project.lead
     
    # Add DB component lead ad a watcher
     
    issue.wathcer+= issue.project.components.find{it.name =="DB"}?.lead