Script to Automatically Copy a Bucket from an Existing Plan to a New Plan

%3CLINGO-SUB%20id%3D%22lingo-sub-2312452%22%20slang%3D%22en-US%22%3EScript%20to%20Automatically%20Copy%20a%20Bucket%20from%20an%20Existing%20Plan%20to%20a%20New%20Plan%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312452%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EApologies%20if%20this%20question%20has%20been%20asked%20before%2C%20but%20I%20was%20wondering%20if%20anyone%20has%20any%20experience%20with%20writing%20a%20script%20(that%20utilizes%20the%20Planner%20API%20in%20Microsoft%20Graph%20or%20some%20other%20tool)%20that%20copies%20an%20entire%20bucket%20of%20tasks%20from%20a%20Plan%20in%20a%20Group%2C%20creates%20a%20new%20plan%20in%20a%20different%20Group%2C%20and%20%22pastes%22%20this%20copied%20bucket%20into%20the%20newly%20created%20plan%3F%20I'm%20pretty%20new%20to%20Microsoft%20Graph%2C%20so%20I%20was%20curious%20to%20see%20if%20anyone%20has%20done%20this%2C%20or%20something%20similar%2C%20before.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20team%20is%20in%20need%20of%20a%20way%20to%20%22archive%22%20the%20tasks%20that%20they%20have%20completed%20in%20previous%20sprints.%20They're%20using%20a%20Plan%20as%20their%20Kanban%20board%20to%20keep%20track%20of%20their%20tasks%2C%20and%20they%20have%20various%20buckets%20in%20this%20plan%2C%20such%20as%20%22Product%20Backlog%2C%22%20%22Sprint%20Backlog%2C%22%20and%20%22Done.%22%20At%20the%20end%20of%20each%20sprint%2C%20they%20want%20to%20be%20able%20to%20save%20the%20%22Done%22%20bucket%20someplace%20else%20and%20move%20it%20off%20of%20the%20board%20to%20keep%20the%20board%20looking%20clean%2C%20as%20they%20want%20the%20board%20to%20only%20reflect%20the%20current%20sprint.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20way%20that%20they%20are%20doing%20this%20at%20the%20moment%20is%20manual.%20At%20the%20end%20of%20the%20sprint%2C%20they%20use%20the%20%22Copy%20Plan%22%20feature%20to%20make%20a%20copy%20of%20their%20Plan%2C%20store%20this%20copy%20in%20another%20Group%2C%20and%20name%20this%20new%20copy%20according%20to%20the%20Sprint%20%23%20(for%20example%2C%20%22Sprint%2010%20Archive%22).%20In%20this%20new%20copy%2C%20they%20delete%20all%20of%20the%20buckets%20except%20for%20the%20%22Done%22%20bucket.%20They've%20mentioned%20that%20this%20process%20is%20fairly%20straightforward%20and%20not%20very%20time%20consuming%2C%20but%20I%20just%20want%20to%20explore%20the%20possibility%20of%20automating%20this%20to%20see%20if%20I%20can%20help%20take%20this%20off%20their%20plate.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%2C%3C%2FP%3E%3CP%3EAlejandro%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2312452%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPlanner%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi all,

 

Apologies if this question has been asked before, but I was wondering if anyone has any experience with writing a script (that utilizes the Planner API in Microsoft Graph or some other tool) that copies an entire bucket of tasks from a Plan in a Group, creates a new plan in a different Group, and "pastes" this copied bucket into the newly created plan? I'm pretty new to Microsoft Graph, so I was curious to see if anyone has done this, or something similar, before.

 

My team is in need of a way to "archive" the tasks that they have completed in previous sprints. They're using a Plan as their Kanban board to keep track of their tasks, and they have various buckets in this plan, such as "Product Backlog," "Sprint Backlog," and "Done." At the end of each sprint, they want to be able to save the "Done" bucket someplace else and move it off of the board to keep the board looking clean, as they want the board to only reflect the current sprint.

 

The way that they are doing this at the moment is manual. At the end of the sprint, they use the "Copy Plan" feature to make a copy of their Plan, store this copy in another Group, and name this new copy according to the Sprint # (for example, "Sprint 10 Archive"). In this new copy, they delete all of the buckets except for the "Done" bucket. They've mentioned that this process is fairly straightforward and not very time consuming, but I just want to explore the possibility of automating this to see if I can help take this off their plate.

 

Best,

Alejandro

0 Replies