> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Component

Creates a component. Use components to provide containers for issues within a project.

This operation can be accessed anonymously.

**Permissions required:** *Administer projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project in which the component is created or *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

## Parameters

<div className="integrations-table">
  | Parameter      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Assignee Type  | The nominal user type used to determine the assignee for issues created with this component. See `realAssigneeType` for details on how the type of the user, and hence the user, assigned to issues is determined. Can take the following values:<br /><br /> \*  `PROJECT_LEAD` the assignee to any issues created with this component is nominally the lead for the project the component is in.<br /> \*  `COMPONENT_LEAD` the assignee to any issues created with this component is nominally the lead for the component.<br /> \*  `UNASSIGNED` an assignee is not set for issues created with this component.<br /> \*  `PROJECT_DEFAULT` the assignee to any issues created with this component is nominally the default assignee for the project that the component is in.<br /><br />Default value: `PROJECT_DEFAULT`.<br />Optional when creating or updating a component. |
  | Description    | The description for the component. Optional when creating or updating a component.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | Lead User Name | The user name of the component's lead user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Name           | The unique name for the component in the project. Required when creating a component.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | Project        | The key of the project the component is assigned to. Required when creating a component. Can't be updated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
</div>

## Example Output

```json theme={"dark"}
{
	"self": "http://www.example.com/jira/rest/api/2/component/10000",
	"id": "10000",
	"name": "Component 1",
	"description": "This is a Jira component",
	"lead": {
		"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
		"key": "JIRAUSER10100",
		"name": "fred",
		"emailAddress": "fred@example.com",
		"avatarUrls": {
			"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
			"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
			"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
			"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
		},
		"displayName": "Fred F. User",
		"active": true,
		"deleted": false,
		"timeZone": "Australia/Sydney",
		"locale": "en_AU"
	},
	"assigneeType": "PROJECT_LEAD",
	"assignee": {
		"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
		"key": "JIRAUSER10100",
		"name": "fred",
		"emailAddress": "fred@example.com",
		"avatarUrls": {
			"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
			"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
			"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
			"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
		},
		"displayName": "Fred F. User",
		"active": true,
		"deleted": false,
		"timeZone": "Australia/Sydney",
		"locale": "en_AU"
	},
	"realAssigneeType": "PROJECT_LEAD",
	"realAssignee": {
		"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
		"key": "JIRAUSER10100",
		"name": "fred",
		"emailAddress": "fred@example.com",
		"avatarUrls": {
			"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
			"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
			"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
			"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
		},
		"displayName": "Fred F. User",
		"active": true,
		"deleted": false,
		"timeZone": "Australia/Sydney",
		"locale": "en_AU"
	},
	"isAssigneeTypeValid": false,
	"project": "HSP",
	"projectId": 10000
}
```

## Workflow Library Example

[Create Component with Jira Data Center and Send Results Via Email](https://library.blinkops.com/workflows/create-component-with-jira-data-center-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-component-with-jira-data-center-and-send-results-via-email/canvas" />
</div>
