Skip to content

Commit f6d787d

Browse files
authored
ci: workflow to create JIRA issue on GH issue create (#370)
Created a github workflow to create a new issue in JIRA when a github issue is created, mirroring the summary and description. Pretty simplistic for now with a hardcoded project, and no support for any ongoing sync events.
1 parent e0eb66d commit f6d787d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/create_issue.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: create_jira_issue
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
create:
10+
runs-on: ubuntu-latest
11+
name: Create JIRA Issue
12+
steps:
13+
- name: Login
14+
uses: atlassian/gajira-login@v3
15+
env:
16+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
17+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
18+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
19+
20+
- name: Create
21+
uses: atlassian/gajira-create@v3
22+
with:
23+
project: CORE
24+
issuetype: Task
25+
summary: ${{ github.event.issue.title }}
26+
description: ${{ github.event.issue.body }}
27+
fields: '{ "labels": ["github-issue"] }'
28+
29+
30+
- name: Log created issue
31+
run: echo "Issue ${{ steps.create.outputs.issue }} was created"

0 commit comments

Comments
 (0)