Inspiration

In today’s fast-paced environment, project teams often need quick access to contextual information. I wanted to create something useful right inside Jira, where many teams work daily. That's where the idea for the Weather Gadget came in—a real-time weather widget powered by the OpenWeather API that brings live conditions directly to Jira dashboards.

What I Learned

This project gave me hands-on experience working with Atlassian Forge, particularly the UI Kit for creating native dashboard gadgets. I learned how to:

  • Use @forge/api to make secure external API calls
  • Handle forms and user input with useForm from @forge/react
  • Manage state and conditional rendering in React
  • Integrate and format API responses in a user-friendly way

How I Built It

  1. Started with the Forge Jira Dashboard Gadget template
  2. Created a configuration view where users can enter a city and country
  3. Used OpenWeather's Geolocation API to fetch location options
  4. Displayed those options as radio buttons and allowed the user to select one
  5. Submitted the selected location and stored its lat/lon
  6. Used those coordinates to call OpenWeather’s Current Weather API
  7. Displayed weather info including temperature, feels-like, humidity, and weather icon using the UI Kit's layout components (Box, Inline, Image, Heading, etc.)

Challenges

  • Handling API errors gracefully, especially invalid location inputs
  • Managing asynchronous fetch calls and updating UI state responsively
  • Ensuring the gadget updated correctly in both edit and view modes
  • Configuring proper permissions for external API calls and images from openweathermap.org

Built With

Share this project:

Updates