def set_assignee(project, issue_type, name): """Assign new default assignee for certain ticket type""" config = helper_config.get_config() if project == "oms3": if issue_type == "bug": config.set(config.sections()[2], 'assignee_oms3_bug_value', name) elif issue_type == "improvement": config.set(config.sections()[2], 'assignee_improvement_value', name) elif issue_type == "feature": config.set(config.sections()[2], 'assignee_feature_value', name) elif project == "oms4": if issue_type == "bug": config.set(config.sections()[2], 'assignee_oms4_bug_value', name) elif issue_type == "improvement": config.set(config.sections()[2], 'assignee_improvement_value', name) elif issue_type == "feature": config.set(config.sections()[2], 'assignee_feature_value', name) elif project == "oms6": if issue_type == "bug": config.set(config.sections()[2], 'assignee_oms6_bug_value', name) elif issue_type == "improvement": config.set(config.sections()[2], 'assignee_improvement_value', name) elif issue_type == "feature": config.set(config.sections()[2], 'assignee_feature_value', name) helper_config.write_to_config( config, 2, )
def set_jira_user(jira_pw): """Set your JIRA password""" helper_config.write_to_config(2, "pw_value", jira_pw)
def set_jira_user(jira_user): """Set your JIRA username""" helper_config.write_to_config(2, "user_value", jira_user)
def set_have_dns(have_dns): """Set whether local PC has access to DNS server""" helper_config.write_to_config(0, 'have_dns', have_dns)
def set_firefox_profile_path(path): """Set path to used Firefox profile""" helper_config.write_to_config(1, 'firefox_profile_dir', path)