# Issue :: Create

## Summary

Creates a JIRA Issue using the asynchronous request queue. Retries are automatically handled. A JIRA Record Linkage is created/updated after a successful response from JIRA.

## Action Inputs

| Label                | Name                 | Type                                   | Mandatory | Description                                                                                                                                                                                                                                                                                                                                                                                 |
| -------------------- | -------------------- | -------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Connector            | connector            | Reference (Reference: Jira Connector)  | No        | \[optional] The sys\_id of the connector to use in the process. If this is blank, the default connector is used.                                                                                                                                                                                                                                                                            |
| Issue Body           | issue\_body          | String                                 | No        | \[optional] Issue body JSON. This can be leveraged to submit data for custom fields or other items not available as inputs to the action. If the same field is used in the Issue Body as is used in the inputs to the action, the action input will overwrite the value supplied in the Issue Body. Action inputs for JIRA data will automatically be added to the Issue Body, if supplied. |
| Record SysId         | record\_sysid        | String                                 | No        | The SYS\_ID of the record in ServiceNow that will be associated to the JIRA Issue we are creating                                                                                                                                                                                                                                                                                           |
| Record Table         | record\_table        | String                                 | No        | The table of the record in ServiceNow that the Record SysId belongs to                                                                                                                                                                                                                                                                                                                      |
| No Attachment Sync   | no\_attachment\_sync | True/False                             | No        | Do we avoid synchronizing any already existing attachments to the record upon creation.                                                                                                                                                                                                                                                                                                     |
| Remote Web Links     | remote\_web\_links   | String                                 | No        | \[optional] Add links to the Issue upon creation. Format is: \[{"title":"The Label for my Link","url":"                                                                                                                                                                                                                                                                                     |
| Execute ASAP         | execute\_asap        | True/False                             | No        | \[optional] Whether to run this as an asynchronous business rule when the record gets created or wait for the job to pick it up in relative order on the queue                                                                                                                                                                                                                              |
| Summary              | summary              | String                                 | No        | \[optional] String to set on the 'Summary' field on the issue in JIRA                                                                                                                                                                                                                                                                                                                       |
| Description          | description          | String                                 | No        | \[optional] String to set on the 'Description' field on the issue in JIRA                                                                                                                                                                                                                                                                                                                   |
| Project              | project              | Reference (Reference: Jira Project)    | No        | \[optional] the Project record that directs what Project should be set to on the Issue in JIRA. This is required if it is not already specified in the "Issue Body"                                                                                                                                                                                                                         |
| Issue Type           | issue\_type          | Reference (Reference: Jira Issue Type) | No        | \[optional] the Issue Type record that directs what issue type should be set to on the Issue in JIRA. This is required if it is not already specified in the "Issue Body"                                                                                                                                                                                                                   |
| Initial Comment      | initial\_comment     | String                                 | No        | \[optional] String to use for adding a comment to the issue in JIRA                                                                                                                                                                                                                                                                                                                         |
| Custom Field 1 Name  | cf1\_name            | String                                 | No        | \[optional] Set a particular custom field. This is the name of the field (eg. customfield\_115002)                                                                                                                                                                                                                                                                                          |
| Custom Field 1 Type  | cf1\_type            | Choice                                 | No        | \[optional] The type of the custom field you are setting. This is only applied when "Custom Field 1 Name" has a value                                                                                                                                                                                                                                                                       |
| Custom Field 1 Value | cf1\_value           | String                                 | No        | \[optional] The value of the field set by "Custom Field 1 Name" field.                                                                                                                                                                                                                                                                                                                      |

## Action Outputs

| Label         | Name           | Type                                       | Mandatory | Description                                                                                 |
| ------------- | -------------- | ------------------------------------------ | --------- | ------------------------------------------------------------------------------------------- |
| Linkage       | linkage        | Reference (Reference: Jira Record Linkage) | No        | The JIRA Linkage record that ties the issue to a SN record.                                 |
| Request       | request        | Reference (Reference: Async Request Queue) | No        | The original asynchronous request queue record used to make the request                     |
| Success       | success        | True/False                                 | No        | Whether the communication and response was as expected                                      |
| Log           | log            | String                                     | No        | Scripted log statements of activities that took place during the operation of this activity |
| Retry Request | retry\_request | Reference (Reference: Async Request Queue) | No        | If there were Retries used in the process, the last retry record is returned                |
| Issue JSON    | issue\_json    | String                                     | No        | The resulting JSON representation of the JIRA Issue                                         |

## Notes

* This action belongs to the **JIRA Request Queue** category.
* This action includes reference fields that link to other tables in ServiceNow:
  * references the table.
  * references the table.
  * references the table.
* This action returns 6 output(s) that can be used in subsequent flow steps.

## Example Usage

### Example 1: Basic Usage

This example demonstrates how to use the action with typical inputs.

**Input:**

**Output:**

In this example, the action processes the provided inputs and returns the appropriate outputs. The actual values returned will depend on the specific functionality of this action and the input values provided.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yansalabs.com/jira-integration-framework/technical-docs/spoke-actions/issue-create.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
