Search

Create Issue

Last Updated: Nov 4, 2020

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

Returns

Return Value Description
Output
  • On Success: 1, Issue Key
  • On Failure: 0, Error Message

Sample

Create Issue (ABCDCEF, https: //yourusername.atlassian.net, yourname@gmail.com, ABC-123, Summary, Issues in JIRA, QA, Bug, 12345, Issue, P3)

  • 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 ‘ABC-123’ with the description ‘Issues in JIRA’ and summary ‘Summary’ in the ‘QA’ environment with priority ‘P3’, type ‘Bug’ and label ‘Issue’ and assigns it to the ID ‘12345’.
    Returns the ‘Issue Key’ of the created issue.

To view all the JIRA functions, click here.

Did you find what you were looking for?