Search

Create Issue

Last Updated: Feb 14, 2022

Articles

Use this function to create a new issue in JIRA.

Syntax

Create Issue (token, url, username, project_key, summary, description, environment, issue_type, assignee_ID, labels, priority)

Parameters

Input Parameter Name Description
token JIRA API token
url JIRA URL
username JIRA username
project_key JIRA project key
summary Ticket summary
description Ticket description
environment Example: QA, PROD etc.
issue_type Type of the issue
Example: Bug, Task, Test, Epic, etc.,
assignee_ID ID of the assignee
labels Label(s) to attach with the issue
priority Issue priority

  • To know more about token, click here.
  • You can find the Assignee ID in the URL when you login to your Atlassian account. The URL is of the format: https://<JIRA URL>/jira/people/<Assignee ID>.

Returns

Return Value Description
Output
  • On Success returns 1 | Issue Key
  • On Failure returns 0 | Error Message

Sample

Create Issue (ABCDCEF, https: //yourusername.atlassian.net, yourname@gmail.com, Connectors, Trouble creating issues, Issues in JIRA, QA, Bug, 12345, Issue, Low)

  • Uses the token ABCDEF to connect to JIRA with the url https: //yourusername.atlassian.net with the username yourname@gmail.com, creates an issue in the project Connectors with the description Issues in JIRA and summary Trouble creating issues in the QA environment with priority Low, type Bug and label Issue and assigns it to the ID 12345.
    Returns the Issue Key of the created issue.

To pass ID of the created issue to the further functions using local variables, first extract the ID from the output 1 | Issue Key using the Substring function.

To view all the JIRA functions, click here.

Did you find what you were looking for?