Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
atlassian

GitHub Action

Jira Create issue

v2.0.1

Jira Create issue

atlassian

Jira Create issue

Create a new Jira issue

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Jira Create issue

uses: atlassian/[email protected]

Learn more about this action in atlassian/gajira-create

Choose a version

Jira Create

Create new issue

For examples on how to use this, check out the gajira-demo repository

Only supports Jira Cloud. Does not support Jira Server (hosted)

Usage

Note: this action requires Jira Login Action
- name: Create
  id: create
  uses: atlassian/gajira-create@master
  with:
    project: GA
    issuetype: Build
    summary: |
      Build completed for ${{ github.repository }}
    description: |
      Compare branch
    fields: '{"customfield_10171": "test"}'

- name: Log created issue
  run: echo "Issue ${{ steps.create.outputs.issue }} was created"

Action Spec:

Environment variables

  • None

Inputs

  • project (required) - Key of the project
  • issuetype (required) - Type of the issue to be created. Example: 'Incident'
  • summary (required) - Issue summary
  • description - Issue description
  • fields - Additional fields in JSON format

Outputs

  • issue - Key of the newly created issue

Reads fields from config file at $HOME/jira/config.yml

  • project
  • issuetype
  • summary
  • description

Writes fields to config file at $HOME/jira/config.yml

  • issue - a key of a newly created issue

Writes fields to CLI config file at $HOME/.jira.d/config.yml

  • issue - a key of a newly created issue