Skip to content

Instantly share code, notes, and snippets.

@asksven
Created March 5, 2022 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asksven/88a21136681691c17ef6860f402d0a55 to your computer and use it in GitHub Desktop.
Save asksven/88a21136681691c17ef6860f402d0a55 to your computer and use it in GitHub Desktop.
from os import environ
from jira import JIRA
# using jira : pip install jira==3.1.1
# Following env vars must be SET
# JIRA_URL
# JIRA_ACCESS_TOKEN
# JIRA_PROJECT
jira = JIRA(
server=environ.get("JIRA_URL"),
token_auth=environ.get("JIRA_ACCESS_TOKEN")
)
new_issue = jira.create_issue(
project=environ.get("JIRA_PROJECT"),
summary='New issue from jira-python',
description='Look into this one',
issuetype={'name': 'Story'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment