Implement a redirect action that enables Glean Assistant to create Jira issues through the native Jira interface
This guide explains how to implement a redirect action that allows users to create Jira issues through Glean Assistant. Unlike execution actions that create issues programmatically, this approach directs users to Jira’s native interface with pre-populated fields. This implementation maintains the familiar Jira environment while streamlining the issue creation process.
The redirect implementation for Jira issue creation offers several distinct advantages over direct API integration. When users trigger the action through Glean Assistant, they are directed to Jira’s issue creation interface with relevant information already filled in. This approach provides a seamless experience while leveraging Jira’s native functionality and maintaining user familiarity with the platform.
The action manifest defines the fundamental properties of your Jira redirect action. This configuration establishes how the action behaves within the Glean ecosystem.
The manifest configuration is intentionally simpler than that of execution actions because redirect actions don’t require OAuth authentication or complex server implementations. This simplicity reduces implementation overhead while maintaining functionality.
The OpenAPI specification serves as the blueprint for how Glean Assistant interacts with your redirect action. This specification must clearly define all parameters and their behaviors to ensure accurate field population.
The specification includes carefully designed parameters that guide Glean Assistant in populating the Jira issue creation form. Each parameter serves a specific purpose and includes clear instructions for value generation.
The project ID parameter (pid
) requires specific attention as it determines where issues are created. The specification includes a default value and clear description to ensure proper project targeting. For example, setting “10000” as the Engineering project helps maintain consistent issue organization.
The issue type parameter uses enumerated values to ensure accurate categorization. The specification maps numeric values to specific issue types, such as 10002 for Tasks and 10004 for Bugs. This mapping ensures that issues are properly classified within your Jira instance.
The priority parameter implements a numeric scale from 1 to 5, with built-in validation to prevent invalid values. This structured approach maintains consistency with Jira’s priority system while allowing for flexible assignment based on issue urgency.
Content-related parameters like summary and description use the x-glean-typehint: "Content"
directive to guide Glean Assistant in generating appropriate text. This hint ensures that generated content matches the expected format and style for Jira issues.
Several key considerations ensure successful implementation of the Jira redirect action.
The specification implements various methods for managing parameter values effectively:
The redirect action builds URLs that properly integrate with Jira’s interface. This process involves:
The implementation includes several measures to prevent common issues:
A comprehensive testing strategy should verify all aspects of the redirect action’s functionality.
Verify that:
Confirm that:
Evaluate:
Regular maintenance ensures continued effectiveness of the redirect action.
Establish monitoring for:
Maintain the implementation by:
The redirect action implementation for Jira issue creation provides a robust solution that balances ease of use with functionality. By leveraging Jira’s native interface while streamlining the population of fields, this approach delivers an optimal user experience while maintaining flexibility and familiarity.
To ensure ongoing success with your implementation:
This implementation provides a solid foundation for streamlined issue creation while maintaining the flexibility and familiarity of the Jira interface. Regular monitoring and maintenance will ensure continued effectiveness and user satisfaction.