Created
March 5, 2022 16:17
-
-
Save asksven/88a21136681691c17ef6860f402d0a55 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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