Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jira issue sync action #70

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/on-issue-create.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: GitHub Issue to JIRA
on:
issues:
types:
- opened

jobs:
build:
runs-on: ubuntu-latest
name: Jira issue
steps:
- name: Login
uses: atlassian/gajira-login@v3 # Required for authenticating to Jira
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

- name: Create
id: create
uses: atlassian/gajira-create@v3
with:
project: CRYO
issuetype: Story
summary: "GitHub Issue: ${{ github.event.issue.title }}"
description: "${{ github.event.issue.body }}.\n\nCreated on GitHub by user ${{ github.actor }}"

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