def mapWorkflow(): jiraToPivotalStatuses = Env().get("jiraToPivotalStatuses") for jira in jiraToPivotalStatuses.keys(): if jira is not "transitions": PivotalToJiraStatusMap().addMapping(jira, jiraToPivotalStatuses[jira]) try: transitions = jiraToPivotalStatuses["transitions"] for transition in transitions.keys(): PivotalToJiraStatusMap().addMapping(transition, transitionFrom=transitions[transition]) except KeyError: return
def mapStatuses(tracker): jiraToPivotalStatuses = Env().get("jiraToPivotalStatuses") for jira in jiraToPivotalStatuses.keys(): if jira is not "transitions": PivotalToJiraStatusMap().addMapping(jira, jiraToPivotalStatuses[jira]) try: transitions = jiraToPivotalStatuses["transitions"] for transition in transitions.keys(): PivotalToJiraStatusMap().addMapping(transition, transitionFrom=transitions[transition]) except KeyError: pass PivotalToJiraStatusMap().insert(tracker.getAvailableStatuses())
def mapWorkflow(): jiraToPivotalStatuses = Env().get("jiraToPivotalStatuses") for jira in jiraToPivotalStatuses.keys(): if jira is not "transitions": PivotalToJiraStatusMap().addMapping(jira, jiraToPivotalStatuses[jira]) try: transitions = jiraToPivotalStatuses["transitions"] for transition in transitions.keys(): PivotalToJiraStatusMap().addMapping( transition, transitionFrom=transitions[transition]) except KeyError: return
def mapUsers(): jiraToPivotalUsers = Env().get("jiraToPivotalUsers") for jira in jiraToPivotalUsers.keys(): PivotalToJiraUserMap().addMapping(jira, jiraToPivotalUsers[jira])