Exemplo n.º 1
0
def add_watcher(ticket, user):
    logging.info('*** Enable watcher Initiated ***')
    if not user:
        user = helper.get_global_config().get('jira', 'user')
    jira = helper.configure_jira()
    try:
        issue = jira.issue(ticket)
        jira.add_watcher(issue, user)
    except Exception, e:
        logging.error(e)
Exemplo n.º 2
0
def add_watcher(ticket, user):
    logging.info("*** Enable watcher Initiated ***")
    if not user:
        user = helper.get_global_config().get("jira", "user")
    jira = helper.configure_jira()
    try:
        issue = jira.issue(ticket)
        jira.add_watcher(issue, user)
    except Exception, e:
        logging.error(e)
Exemplo n.º 3
0
def add_comment(ticket, comment):
    logging.info('*** Comment on ticket Initiated ***')
    if comment:
        body = comment
        jira = helper.configure_jira()
        try:
            user = helper.get_global_config().get('jira', 'user')
            issue = jira.issue(ticket)
            jira.add_comment(issue, body)
            jira.add_watcher(issue, user)
            logging.info('*** Watcher Enabled ***')
        except Exception, e:
            logging.error(e)
Exemplo n.º 4
0
def add_comment(ticket, comment):
    logging.info("*** Comment on ticket Initiated ***")
    if comment:
        body = comment
        jira = helper.configure_jira()
        try:
            user = helper.get_global_config().get("jira", "user")
            issue = jira.issue(ticket)
            jira.add_comment(issue, body)
            jira.add_watcher(issue, user)
            logging.info("*** Watcher Enabled ***")
        except Exception, e:
            logging.error(e)
Exemplo n.º 5
0
def assgin_issue(ticket):
    '''
    Assigns the tickets to a user
    '''
    logging.info('*** Assign the ticket Initiated ***')
    config = helper.get_global_config()
    user = config.get('jira', 'user')
    logging.info('User :%s and Ticket %s ' % (user, ticket))
    print "User : "******"Ticket : ", ticket
    jira = helper.configure_jira()
    try:
        issue = jira.issue(ticket)
        jira.assign_issue(issue, user)
        jira.add_watcher(issue, user)
        logging.info('*** Watcher Enabled ***')
    except Exception, e:
        logging.error(e)
Exemplo n.º 6
0
def assgin_issue(ticket):
    """
    Assigns the tickets to a user
    """
    logging.info("*** Assign the ticket Initiated ***")
    config = helper.get_global_config()
    user = config.get("jira", "user")
    logging.info("User :%s and Ticket %s " % (user, ticket))
    print "User : "******"Ticket : ", ticket
    jira = helper.configure_jira()
    try:
        issue = jira.issue(ticket)
        jira.assign_issue(issue, user)
        jira.add_watcher(issue, user)
        logging.info("*** Watcher Enabled ***")
    except Exception, e:
        logging.error(e)