While writing a Bamboo plugin I have reviewed multiple manager classes and have found a few different ways of iterating over all the Stage and Jobs under a single plan, given the Plan Key.
What's the most efficient way of doing this given a PlanKey and assuming I want to iterate over each Stage in a Plan and each Job in each Stage to identify the Key or each Stage and each Job?
Community moderators have prevented the ability to post new answers.
PlanManager planManager; Chain myPlan = planManager.getPlanByKey(planKey, Chain.class); for (ChainStage chainStage : myPlan.getStages()) { for (Job job: chainStage.getJobs()) { } }
Awesome, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.