Create Jira component from real-time call

Recipe ToolsProject ManagementMarketingDeveloper Tool

What it does

When a real-time call for Add Component is received, this automation checks if the component already exists in Jira. If not found, it adds the component and returns the name and ID.

Who it's for

Engineering teams who need to add Jira components programmatically without manual entry.

How teams use this

Prevent duplicate components in Jira

Check for existing components before adding so the same component is never created twice. Jobs can be repeated infinitely with no risk of duplication.

Automate component setup for new projects

Call this automation when a new Jira project is created to add standard components without manual work. The same flow applies to every project.

Add component metadata on creation

Extend the automation to include additional fields like description or lead when the component is added. Set these fields from the call payload.

Sync components across multiple Jira instances

Route component creation calls to different Jira instances based on project type. Only components matching specific criteria are added to each instance.

How it works

  1. Receive Add Component call. A real-time call for Add Component is received with the component details needed to add it to Jira.
  2. Search for existing component. Call Find Component By Name to check if the component is already present in Jira so the operation is idempotent and repeatable.
  3. Add component if not found. When the component does not exist, add it to Jira with the provided details and return the response with the name and ID.
  4. Apply throttle delay. Execute a sleep throttle in Ruby code to manage the rate of operations and prevent overload on Jira.
  5. Return the result. Send back a response indicating whether the component was added or already existed, with the component name and ID.