Automating Capacity Planner with ScriptRunner: Fast, convenient, efficient

This script uses Capacity Planner, a tool to streamline the management of teams and resources to quickly find available team members and maximize your resource utilization.

Automation in Tempo is easy with the help of a tool like ScriptRunner. So far, most of the scripts published in the library will work with any of the three Tempo products (Timesheets, Capacity Planner, Budgets), but there is one that is exclusive to Tempo Planner.

If Capacity Planner is a mystery to you, we’re about to change that right now!

Capacity Planner is a resource allocation app for Jira that lets you quickly find available team members and maximize your resource utilization. With it, you’ll be able to boost the efficiency of your teams and simplify your planning process.

Today we’ll go over some use cases and scenarios for this ScriptRunner’s Tempo Planner script.

Today’s example: Get Tempo Plans Using the REST API for a set time period

This script uses Capacity Planner, a tool to streamline the management of teams and resources to quickly find available team members and maximize your resource utilization.

As the name of the script suggests, ScriptRunner now has a way to remove some pesky manual labor and automate the process of pulling Tempo plans of interest for a given Jira Issue. 

Where does this script shine? 

Let’s take the case of Taylor, a team lead for Rougetech. Every month, Taylor and her team get together for their monthly planning. In it, they plan time for each team member on the tasks that they must do. 

In other words, her current steps to see the total plans for the next 4 weeks are as follows:

  1. In Jira, navigate to Tempo Planner and plan the task for the team

In your Tempo Planner page, you will have the possibility of filtering the view to your team. The capacity of the team and the individual members will be displayed for the determined period.

After the planning has been completed, Taylor will be able to revisit an issue to see who all the collaborators are, and quickly calculate the total time planned to see if it matches her initial prediction and budget. 

The issue “Have Fun!” showcases all the planned time under “Collaborators”.

That being said, this is slightly tedious for Taylor because of the following:

  • She has to manually sum the time to find out how much time has been planned on the issue

  • It does not say when that time is being planned for as the issue shows the total planned time only

On the surface, this might not seem like much and it could end up simply saving 5-20 minutes per issue. But, lets not forget the following:

  1. Taylor has to look at more than one issue every month, making her waste even more time 

  2. Taylor has to do the same steps over and over again when they can be automated

  3. Taylor has no idea if all the planned time is evenly split or if it’s all planned during a certain week

This repetition of a mundane task could also be a widespread practice throughout the whole organization. Other team leads could be following the same practice (especially if it is standardized), meaning that the company is losing hundreds, if not thousands of dollars on such a little thing. 

In other words, the script does the following: 

  • Reduces the amount of manual labor necessary to attain the end result

  • Gets the total time for the relevant period immediately when visiting an issue

  • Decreases the potential human error to near zero

  • Automatically displays the planned time of a determined time period for an issue as a Jira custom field. This allows for reporting on planned time in the Jira issue view and to include the planned time information in other Jira reports

  • Compare total estimated time with remaining planned time. Enables you to quickly query on those issues that are over- or under-allocated

But the use case does not limit itself to monthly planning!

There are many other scenarios where this script can save precious time for the end user and the organization. 

For example, a manager in a consulting firm could be looking at the staff's planned hours for a client’s issue to ensure that for a given time period, the time planned does not exceed the contractual agreement with the client. If it does, then the firm can let the client know that they will charge extra. 

Or if for example people were logging time on an off-site issue (such as meeting clients or being on the road), then it would help a manager quickly understand how much time his team is spending off-premise, and help determine the remaining capacity of his team for a predetermined time frame.

How do I get my hands on the script? 

The beauty in this partnership is its simplicity. 

All you have to do is to copy-paste the script in your ScriptRunner terminal and tweak the variables to your use case.

Are there other scripts like this?

Today, we quickly went over one of the newly published scripts made by the Tempo-Adaptavist partnership for Capacity Planner and some scenarios in which time could be saved through automation.

More scripts have been published in the Tempo-Adaptavist library.

Sign up for a demo

Request demo

Capacity Planner

Integrate seamlessly with Jira

Capacity Planner is the only tool in the Atlassian Marketplace that allows planning for multiple resources on one issue. Users can customize the UI to include their existing Jira issues and projects.

Start a Free Trial

Related articles

Explore More Content

See how work is progressing and where blockers are with the most flexible reporting app in Jira.

Tempo’s intuitive automation and Jira-native design make it the most trusted time tracking tool for enterprise organization.

Extend your Jira with prebuilt and highly configurable reports for straightforward time tracking.

Visualize all your Jira data & manage portfolios of projects in real-time.

Gain a more complete project management solution, simplifying project reporting, improving collaboration, and ensuring projects stay on time and within budget.

Powered by Structure’s custom hierarchies, visualize your roadmap, project plans, timeline & dependencies within Jira Gantt charts

Combining Tempo Timesheets and Structure PPM provides a unified view of time tracking and project progress, enabling more accurate reporting and effective portfolio management. Simplify workflows, enhance collaboration, and ensure projects stay on time and within budget.

Seamlessly connect ServiceNow with Power BI, transforming complex enterprise data into actionable insights and driving smarter, data-informed decisions across the organization

#1 Jira Resource Management App: Optimize team allocation, skillset utilization, capacity planning & project management

Modern modular PPM solutions that scale with your business. Align your teams with the integrated platform that bridges the gap between strategy and execution.

For planning leaders looking to add a big-picture roadmap view to their structured Jira data, this integration is essential. Improve visibility to leadership, reduce reporting admin, and keep your team aligned.

Seamlessly manage project timelines and resources while accurately tracking time spent on tasks. This integration enhances visibility, improves planning accuracy, and supports data-driven decision-making for better overall project outcomes.

Portfolio Manager integrates seamlessly with Jira to give you predictive scheduling, real-time scenario modeling, and advanced resource management – ensuring you stay on track, no matter what challenges arise.

Monitor projects and portfolios to get simple, clear, and real-time views of your costs, budgets, and profits that can be shared throughout your entire organization.

Connect AI spend to the work it delivers. Attribute AI coding-tool costs to Jira epics and prove AI ROI, inside Jira with Tempo Workforce Intelligence.

Project financial management for Jira & Timesheets. Monitor project costs, expenses, revenue, billing & budgets. Track Capex/Opex

Jira Project Portfolio Management (PPM): Visualize data and manage projects within spreadsheet-like tables — in less than a minute

Tempo Loop is the next evolution of PPM software. It continuously tracks work tied to the strategy it funded, so you don’t wait to find out about strategic drift in your next review. Know what every person and agent is working on and what it costs in real time.

Capture human time and AI activity together in Jira so you can measure what your AI tools are truly contributing and costing.

Integrate Jira with Google BigQuery to seamlessly export and sync data for advanced analytics and customized reporting

#1 Jira Time Tracking & AI Apps: Log Tempo Timesheets for Planning, Project Management & Billing. Plugin Office365, Google & Slack

Build and scale a custom ITSM solution at your own pace with Tempo's modular suite of integrated tools. Enhance Jira's capabilities and take control of your entire IT portfolio.

Colleagues interacting around a desk

Effortlessly bridge Jira with your preferred BI tool, unlocking unparalleled insights and enhancing decision-making

A powerful team resource management tool designed to optimize capacity planning and project management in Jira

Adapt to changing business needs, rapidly adjust plans, and reallocate investment.