5 min read

Jira Create Issue

Overview

This node is designed for seamless integration with Jira, allowing users to programmatically create issues within specified projects. This functionality is essential for teams that leverage Jira for project management and issue tracking, enabling them to automate workflows and improve efficiency.

Settings

1. projectKey

2. issueType

3. summary

4. description

5. priority

6. labels

7. assigneeAccountId

How It Works

  1. Input Handling: The function retrieves inputs either from the parameters provided (inputs) or from the configuration (config).
  2. Validation: It checks for required fields (projectKey and summary) and returns an error object if they are not provided.
  3. Jira Integration: It utilizes the integration connection to establish a connection to Jira, indicating that this node relies on an existing integration setup.
  4. Labels Management: If labels are provided, they are parsed into an array. The function accommodates both string input and array input.
  5. Creating the Issue: The integration call to integration.createIssue() handles the creation of the issue with all given parameters, allowing for a comprehensive issue setup.
  6. Output: On successful creation, it returns an object containing details of the created issue, or an error message if something goes wrong during the process.

Data Expectations

This node expects structured input data which adheres to the following format:

Use Cases & Examples

Use Case 1: Automated Issue Creation from a Frontend Application

A web application allows users to report bugs. Upon submission of a bug report, createIssue can be invoked to create an issue automatically in the relevant Jira project.

Use Case 2: Task Management in Agile Teams

An Agile project manager wants to create recurring tasks for team sprints. Using this node, they can set up a scheduled job that creates tasks automatically every time a new sprint begins.

Example Configuration

For the first use case, here is how this node might be configured:

json
{
    "inputs": {
        "projectKey": "PROJ",
        "issueType": "Bug",
        "summary": "Submit button not functional in form",
        "description": "The submit button fails to respond when clicked. Tested across multiple browsers.",
        "priority": "High",
        "labels": "UI, Bug",
        "assigneeAccountId": "78910"
    },
    "config": {}
}

In this example, an issue of type "Bug" is created in the project identified by "PROJ", with a summary and description to detail the issue, a high priority, and labeled for easier tracking. The issue will be assigned to the account with ID 78910. This configuration automates the logging of issues, improving team responsiveness and workflow.