JiraCreateIssue-example

This script is used to simplify the process of creating a new Issue in Jira. You can specify custom fields using the `customFields` argument.

python · Atlassian Jira

Details

IDJiraCreateIssue-example
Languagepython
From Version5.0.0
Docker Imagedemisto/python3:3.12.13.10116658
Tagsjira example

README

This script is used to simplify the process of creating a new Issue in Jira.
You can specify custom fields using the customFields argument.

Script Data


Name Description
Script Type python3
Tags jira, example
Cortex XSOAR Version 5.0.0

Dependencies


This script uses the following commands and scripts.

  • jira-create-issue

Used In


This script is used in the following playbooks and scripts.

  • Indeni Demo

Inputs


Argument Name Description
summary Summary of the issue, a mandatory field
projectKey Project key to associate the issue
issueTypeName Choose issue type by name - e.g. Problem
issueTypeId Choose issue type by its numeric ID
projectName Project name to associate the issue
description Issue description
labels comma separated list of labels
priority priority name, e.g. High/Medium.
dueDate Due date for the issue, in format YYYY-MM-DD
assignee assignee name
reporter reporter name
parentIssueKey Parent issue key if you create a sub-task
parentIssueId Parent issue ID if you create a sub-task
customFields Comma-separated custom field keys and values to include in the created incident, e.g. `customfield_10101=foo,customfield_10102=bar`

Outputs


Path Description Type
Ticket.Id Id of ticket Unknown
Ticket.Key Key of ticket Unknown
commonfields:
  id: JiraCreateIssue-example
  version: -1
name: JiraCreateIssue-example
script: ''
type: python
subtype: python3
tags:
- jira
- example
comment: |
  This script is used to simplify the process of creating a new Issue in Jira. 
  You can specify custom fields using the `customFields` argument.
enabled: true
args:
- name: summary
  required: true
  description: Summary of the issue, a mandatory field.
- name: projectKey
  description: Project key to associate the issue.
- name: issueTypeName
  description: Choose issue type by name - e.g. Problem.
- name: issueTypeId
  description: Choose issue type by its numeric ID.
- name: projectName
  description: Project name to associate the issue.
- name: description
  description: Issue description.
- name: labels
  description: 'comma separated list of labels.'
  isArray: true
- name: priority
  description: priority name, e.g. High/Medium.
- name: dueDate
  description: Due date for the issue, in format YYYY-MM-DD.
- name: assignee
  description: assignee name.
- name: reporter
  description: reporter name.
- name: parentIssueKey
  description: Parent issue key if you create a sub-task.
- name: parentIssueId
  description: Parent issue ID if you create a sub-task.
- name: customFields
  description: Comma-separated custom field keys and values to include in the created incident, e.g. `customfield_10101=foo,customfield_10102=bar`.
  isArray: true
outputs:
- contextPath: Ticket.Id
  description: Id of ticket.
- contextPath: Ticket.Key
  description: Key of ticket.
scripttarget: 0
dependson:
  must:
  - jira-create-issue
tests:
- No tests
fromversion: 5.0.0
dockerimage: demisto/python3:3.12.13.10116658