 In 227, Zhuge Liang mobilised military forces from throughout Shu in preparation for a large-scale campaign against Shu's rival state Wei in the following year.He then moved to the staging area in Hanzhong Commandery while leaving behind Jiang Wan and his chief clerk Zhang Yi to take charge of his office in the Shu capital Chengdu.In 230, following Zhang Yi's death, Jiang Wan replaced him as Zhuge Liang's chief clerk and was given an additional appointment as General Who Pacifies the Army ().