---
title: "Create-Issue"
---
Creates an issue in Jira.
Jira::Create-Issue(
	Title: <text>,
	Type: <text>,
	[Description: <text>],
	[FixFor: <text>],
	[JiraIssueId: <text>],
	[From: <text>],
	[Project: <text>],
	[Server: <text>],
	[UserName: <text>],
	[ApiToken: <text>]
);
| Name | Format | Script Usage | Usage Notes | 
|---|---|---|---|
| ☆ Title | text | Title | This argument is required. | 
| ☆ Type | text | Type | This argument is required. | 
| Description | text | Description | |
| Fix for version | text | FixFor | Default value is "$ReleaseNumber". | 
| ⇒ Set issue ID to a variable | text | JiraIssueId | The JIRA issue ID can be output into a runtime variable. e.g. $JiraIssueId". | 
| From project | text | From | |
| Project name | text | Project | Not specifying will "Use project specified in connection". | 
| Server | text | Server | Not specifying will "Use server URL from resource". | 
| UserName | text | UserName | Not specifying will "Use user name from resource's credentials". | 
| API Token | text | ApiToken | Not specifying will "Use API Token from resource's credentials". | 
# create issue for the HDARS project notifying QA that testing is required
Create-Issue(
    From: Jira7Local,
    Title: QA Testing Required for $ApplicationName,
    Description: This issue was created by BuildMaster on $Date,
    Type: ReadyForQA,
    JiraIssueId => $JiraIssueId
);
Log-Information "Issue '$JiraIssueId' was created in JIRA.";