--- title: "Create-Issue" ---
This is generated from the built in components of BuildMaster 2023.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Operations within your BuildMaster instance to see exactly what operations are available.

Creates an issue in Jira.

Script usage:

Jira::Create-Issue(
	Title: <text>,
	Type: <text>,
	[Description: <text>],
	[FixFor: <text>],
	[JiraIssueId: <text>],
	[From: <text>],
	[Project: <text>],
	[Server: <text>],
	[UserName: <text>],
	[ApiToken: <text>]
);

Arguments:

NameFormatScript UsageUsage 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".

Example:


# 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.";